Andreas Reich
276753f963
DynDevice create/destroy bind group
...
bindgroup fixup
2024-08-14 17:34:11 +02:00
Andreas Reich
33f57e2305
DynDevice create/destroy pipeline layout
2024-08-14 17:34:11 +02:00
Andreas Reich
1da319f804
DynDevice create/destroy bind group layout
2024-08-14 17:34:11 +02:00
Andreas Reich
05a09338cd
DynDevice create/destroy command encoder
2024-08-14 17:34:11 +02:00
Andreas Reich
ea0df25d5e
DynDevice create/destroy for texture/textureview/sampler
2024-08-14 17:34:11 +02:00
Andreas Reich
b599d97243
DynDevice buffer operations
2024-08-14 17:34:11 +02:00
Andreas Reich
72f30a34f5
introduce DynQueue
2024-08-14 17:34:11 +02:00
Andreas Reich
4e5721350f
introduce DynSurface
2024-08-14 17:34:11 +02:00
Andreas Reich
70f7641193
impl DynSurfaceTexture for all surface textures
2024-08-14 17:34:11 +02:00
Andreas Reich
1d19a205a5
impl DynFence for all fences
2024-08-14 17:34:11 +02:00
Andreas Reich
3faed2bf52
Device now has to implement DynResource
2024-08-14 17:34:11 +02:00
Andreas Reich
df5cc12935
impl DynCommandBuffer
2024-08-14 17:34:11 +02:00
Andreas Reich
a9cb7fc855
impl DynShaderModule for all backends
2024-08-14 17:34:11 +02:00
Andreas Reich
b4c6741970
add most remaining dyn type traits
2024-08-14 17:34:11 +02:00
Andreas Reich
add54f19d8
Introduce DynDevice
2024-08-14 17:34:11 +02:00
Andreas Reich
b7e11c76df
texture & buffer transitioning always uses DynCommandEncoder now
...
collateral: ComputePass uses DynCommandEncoder during recording
2024-08-14 17:34:11 +02:00
Andreas Reich
c02ee6270b
buffer / texture copy operations for DynCommandEncoder
2024-08-14 17:34:11 +02:00
Andreas Reich
39b408218f
implement transition_textures for DynCommandEncoder
2024-08-14 17:34:11 +02:00
Andreas Reich
eeaf27749c
implement begin/end render/computepass for dyncommandencoder
2024-08-14 17:34:11 +02:00
Andreas Reich
a47a0cb3d9
render/compute pass descriptors work now with dyn types
2024-08-14 17:34:11 +02:00
Andreas Reich
bdf6710d58
introduce DynTexture & DynTextureView
2024-08-14 17:34:11 +02:00
Andreas Reich
bea9a10f90
fold ComputePassTimestampWrites & RenderPassTimestampWrites and make PassTimestampWrites usable with DynQuerySet
2024-08-14 17:34:11 +02:00
Andreas Reich
fc764b4b17
Introduce DynComputePipeline & DynRenderPipeline
2024-08-14 17:34:11 +02:00
Andreas Reich
50a1811229
Introduce DynPipelineLayout & DynBindGroup
2024-08-14 17:34:11 +02:00
Andreas Reich
f8871e6ed1
introduce DynQuerySet, associated DynCommandEncoder methods
2024-08-14 17:34:11 +02:00
Andreas Reich
9b20fd8507
DynCommandEncoder implement begin/end encoding, debug markers, various buffer operations
2024-08-14 17:34:11 +02:00
Andreas Reich
256ec6e447
Introduce DynCommandEncoder, implement index & vertex buffer ops on it
2024-08-14 17:34:11 +02:00
Andreas Reich
a4d9d38d03
BufferBarrier no longer depend on hal api struct, but directly on buffer type
2024-08-14 17:34:11 +02:00
Andreas Reich
cda9d9af65
Buffer bindings no longer depend on hal api struct, but directly on buffer type
2024-08-14 17:34:11 +02:00
Andreas Reich
d2508d9ad6
introduce DynResource & DynBuffer as first user
2024-08-14 17:34:11 +02:00
Samson
c6a3d92734
Rg11b10Float
-> Rg11b10UFloat
and deduplicate entries in TEXTURE_FORMAT_LIST
(#6108 )
...
* Resync `TEXTURE_FORMAT_LIST` to match `TextureFormat`
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* `Rg11b10Float` -> `Rg11b10UFloat`
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Add changelog entry
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-13 08:28:55 +00:00
Erich Gubler
5533c37786
chore: satisfy clippy::collapsible_match
2024-08-13 08:42:41 +01:00
Erich Gubler
8231d31eab
chore: update out-of-date docs build fix expectation
2024-08-13 08:42:41 +01:00
Erich Gubler
bf051fb476
refactor(naga): use same Firefox commentary for rust-version
2024-08-13 08:42:41 +01:00
Erich Gubler
22b8f50987
chore: satisfy unused_qualifications
lint
2024-08-13 08:42:41 +01:00
Erich Gubler
7f881bd35f
chore(naga): remove broken Unsupported64Bit
tests
...
Seemingly missed in 4e6f873da5
.
2024-08-13 08:42:41 +01:00
Erich Gubler
ce23c02feb
chore(naga): remove dead "validation"
feat. refs.
...
Missed in a26e4a00
, but we're fixing it now!
2024-08-13 08:42:41 +01:00
Erich Gubler
b1eb6db8cd
refactor: satisfy clippy::manual_bits
2024-08-13 08:42:41 +01:00
teoxoy
c72bc7b84b
remove unnecessary RwLock
from Texture.clear_mode
2024-08-13 00:55:32 +02:00
teoxoy
1aaaec22f6
use ManuallyDrop
for texture views of TextureClearMode
2024-08-13 00:55:32 +02:00
teoxoy
ce9c9b76f6
remove Option
around A::SurfaceTexture
...
We can rely on the snatching mechanism to take the surface texture.
2024-08-13 00:55:32 +02:00
teoxoy
19843c9c5f
use ManuallyDrop
for Device.fence
2024-08-13 00:55:32 +02:00
teoxoy
728b288fda
use ManuallyDrop
for Device.zero_buffer
2024-08-13 00:55:32 +02:00
teoxoy
c1bc0864c5
use ManuallyDrop
for remaining resources
2024-08-13 00:55:32 +02:00
teoxoy
b0cc0d2ebc
use QuerySet.raw()
instead of QuerySet.raw.as_ref().unwrap()
2024-08-13 00:55:32 +02:00
teoxoy
cf5706c24b
use Device.raw()
instead of Device.raw.as_ref().unwrap()
2024-08-13 00:55:32 +02:00
teoxoy
7c917abf52
[gl] gate usage of glFlushMappedBufferRange
...
This is done in the same way as in `map_buffer` & `unmap_buffer`.
2024-08-12 14:20:56 +01:00
teoxoy
b594497f4a
[gl] fix usage of glFlushMappedBufferRange
...
`offset` is relative to the start of the mapping not the start of the buffer.
2024-08-12 14:20:56 +01:00
teoxoy
a6bc2f6f53
fix check for flush_mapped_ranges
in map_buffer
...
`flush_mapped_ranges` needs to be called when mappings are not coherent.
We can also omit flushing for write-mapped buffers since we always flush them on unmap.
2024-08-12 14:20:56 +01:00
teoxoy
f0875e8fda
remove Buffer.sync_mapped_writes
...
`zero_init_needs_flush_now` was always equal to `mapping.is_coherent`
which is not correct but is fixed by the next commit.
2024-08-12 14:20:56 +01:00