Hi, this might be a slang issue instead, but I'll post this here anyway. I have a slang shader with this entrypoint:
[numthreads(64,1,1)]
void main(
uint8_t* output,
Gltf* gltf,
uniform uint scene_size,
DescriptorHandle<Sampler2D> image,
uint3 dispatch_thread_id : SV_DispatchThreadID,
) {...}
This creates an OpTypeStruct where one of the members is a OpTypePointer to a 8-bit OpTypeInt. I get this validation error:
[2025-01-25T07:04:19Z ERROR vulkan] VALIDATION [VUID-RuntimeSpirv-storagePushConstant8-06330 (574681531)] : Validation Error: [ VUID-RuntimeSpirv-storagePushConstant8-06330 ] | MessageID = 0x2240f1bb | vkCreateShaderModule(): SPIR-V contains an 8-bit OpVariable with PushConstant Storage Class, but storagePushConstant8 was not enabled.
I feel like this error is wrong as the pointer should be 64-bits in size, not 8. Changing the entry point to take a uint* and then casting it to uint8_t* in the shader gets rid of this error.