glslang icon indicating copy to clipboard operation
glslang copied to clipboard

vk::image_format support missing from HLSL compile

Open buzmeg opened this issue 1 year ago • 2 comments

The following code:

[[vk::image_format("rgba8")]] RWTexture2D<float4> isw;

fails with

warning: 'image_format' : unrecognized attribute

buzmeg avatar Nov 11 '24 04:11 buzmeg

As of right now, glslang HLSL support is not under active development, though there are occasionally bugfixes. We certainly won't say no to patches for new features, but it's up to the community to develop them.

arcady-lunarg avatar Nov 11 '24 19:11 arcady-lunarg

I understand that HLSL is not a priority, but is it possible that this issue is looked at? Vulkan validation layers recently added a new check for format mismatch, which revealed this is a big problem. Essentially writes to UAVs are only valid to 32-bit float textures, otherwise it is an undefined behavior.

TheMostDiligent avatar Mar 14 '25 01:03 TheMostDiligent

Closing. Moved to slang since slang is being actively developed.

buzmeg avatar Oct 07 '25 04:10 buzmeg