blade: enforce alignment in the belt

This commit is contained in:
Dzmitry Malyshau 2024-02-04 00:09:32 -08:00
parent c5ff46e14f
commit d6bbcf503b
3 changed files with 16 additions and 9 deletions

View file

@ -251,6 +251,7 @@ impl BladeRenderer {
let instance_belt = BladeBelt::new(BladeBeltDescriptor {
memory: gpu::Memory::Shared,
min_chunk_size: 0x1000,
alignment: 0x100, // required by DX12
});
let atlas = Arc::new(BladeAtlas::new(&gpu));
let atlas_sampler = gpu.create_sampler(gpu::SamplerDesc {