Nicolas Silva
e6a2a86f2c
Fix a regression from #6223 ( #6227 )
...
buffer and texture got swapped in one of theses few places where the type system couldn't catch my mistake.
2024-09-06 09:39:09 +00:00
Nicolas Silva
81963e24ca
Fix the internal buffer and texture count ( #6223 )
...
Currently, we only increment the internal buffer/texture counters when creating them in the regular way (not when creating them from externally built hal objects (create_texture_from_hal/create_buffer_from_hal). However we decrement the counter in all cases, which makes the counters incorrect when these externally created resources are involved.
This commit fixes it by adding hooks (add_raw_buffer and add_raw_texture) in the hal device abstractions to inform when buffer or textures are created externally.
2024-09-05 18:53:01 +00:00
Erich Gubler
23e7846400
refactor(hal): satisfy trivial_casts
2024-08-15 14:14:13 +01:00
Andreas Reich
27944debb1
DynCommandEncoder acceleration structure building
2024-08-14 17:34:11 +02:00
Andreas Reich
1a9170e57b
DynDevice exit, counters, report
2024-08-14 17:34:11 +02:00
Andreas Reich
9e1f1487b4
DynDevice acceleration structure handling
2024-08-14 17:34:11 +02:00
Andreas Reich
522b98c582
DynDevice wait/capture/pipeline_cache_get_data
2024-08-14 17:34:11 +02:00
Andreas Reich
dbf9aea0ba
DynDevice fence
2024-08-14 17:34:11 +02:00
Andreas Reich
84c4811f81
DynDevice create/destroy query set
2024-08-14 17:34:11 +02:00
Andreas Reich
4d355bf30e
DynDevice pipeline cache
2024-08-14 17:34:11 +02:00
Andreas Reich
3932f8b854
DynDevice create/destroy compute/render pipeline
2024-08-14 17:34:11 +02:00
Andreas Reich
ad5c7fe50e
DynDevice create/destroy ShaderModule
2024-08-14 17:34:11 +02:00
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
3faed2bf52
Device now has to implement DynResource
2024-08-14 17:34:11 +02:00
Andreas Reich
add54f19d8
Introduce DynDevice
2024-08-14 17:34:11 +02:00