We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem shader
[[vk::image_format("r16f")]] [[vk::binding(3, 0)]] RWTexture2D<float> RWTextureBindless[]; [[vk::image_format("r16f")]] [[vk::binding(0, 1)]] globallycoherent RWTexture2D<float> mip5Dest;
The compiled result translate to GLSL by SPIRV-Cross:
layout(set = 0, binding = 3, r32f) uniform writeonly image2D RWTextureBindless[]; layout(set = 1, binding = 0, r16f) uniform coherent image2D mip5Dest;
When watching SPIR-V Asm, can find it still use r32f:
%type_2d_image_0 = OpTypeImage %float 2D 2 0 0 2 R32f %type_2d_image_1 = OpTypeImage %float 2D 2 0 0 2 R16f // ... %638 = OpAccessChain %_ptr_UniformConstant_type_2d_image_0 %RWTextureBindless %636 %639 = OpLoad %type_2d_image_0 %638 // ... %512 = OpLoad %type_2d_image_1 %mip5Dest
The text was updated successfully, but these errors were encountered:
[SPIRV] Add the vk::image_format to runtime arrays
0dc61f4
A case was missed when adding the `vk::image_format` to the image types. We did not handle runtime arrays. We fix that oversight. Fixes microsoft#6880
@qiutang98 I know it doesn't solve your issue, but are you sure that you want all your bindless images to have the same format?
The Vulkan imageStoreWithoutFormat feature is quite ubiquitous nowadays.
Sorry, something went wrong.
s-perron
Successfully merging a pull request may close this issue.
Problem shader
The compiled result translate to GLSL by SPIRV-Cross:
When watching SPIR-V Asm, can find it still use r32f:
The text was updated successfully, but these errors were encountered: