RenderPass.setPushConstant broken on Dx12 #6558
Labels
area: naga back-end
Outputs of naga shader conversion
lang: HLSL
D3D Shading Language
naga
Shader Translator
type: bug
Something isn't working
set_push_constant
seems to be broken on Dx12. I have a small test that runs fine on GL, Vulkan, and Metal, but breaks on Dx12.The test is simple. My push constants are an array of sixteen i32s, (the squares from 0 to 255). In either the vertex shader or the fragment shader I copy the constants to a buffer. I then read the contents of the buffer and compare with the values that were originally pushed.
It seems strange that I'm seeing every fourth constant. And I'm only seeing this on Dx12.
bug_report.zip contains a single file bug_report.rs, which is a wgpu test.
bug_report.zip
The text was updated successfully, but these errors were encountered: