Description
No matter what i do, i can not bind my bindless resource to other descriptor set. it always 0.
Steps to Reproduce
[[vk::binding(0, 1)]] Texture2D BindlessTextures[];
[[vk::binding(1, 1)]] ByteAddressBuffer BindlessBuffers[] ;
or this:
Texture2D BindlessTextures[] : register(t0, space1);
ByteAddressBuffer BindlessBuffers[] : register(t1, space1);
the output after compilation:
UniformConstant type.2d.image[]* BindlessTextures : [[DescriptorSet(0), Binding(1), UserTypeGOOGLE]];
StorageBuffer type.ByteAddressBuffer[]* BindlessBuffers : [[DescriptorSet(0), Binding(5), UserTypeGOOGLE]];
-> DescriptorSet(0)
i do not care about bind-index, but i want to have bindless resources in separate descriptor set.
Environment
- DXC version 1.9
- Host Operating System Windows
my compiler flags are:
-Wno-effects-syntax
-Wno-unused-parameter
-spirv
-fspv-reflect
-fspv-target-env=vulkan1.3
-Zsb
-HV 2021
-T 6.6
-fspv-extension=SPV_EXT_descriptor_indexing
-fspv-extension=SPV_EXT_mesh_shader
-fspv-extension=SPV_GOOGLE_hlsl_functionality1
-fspv-extension=SPV_GOOGLE_user_type
-fspv-extension=SPV_KHR_ray_query
-fspv-extension=SPV_KHR_physical_storage_buffer
-Zpr
any help would be appriciated.
thanks,
Description
No matter what i do, i can not bind my bindless resource to other descriptor set. it always 0.
Steps to Reproduce
[[vk::binding(0, 1)]] Texture2D BindlessTextures[];
[[vk::binding(1, 1)]] ByteAddressBuffer BindlessBuffers[] ;
or this:
Texture2D BindlessTextures[] : register(t0, space1);
ByteAddressBuffer BindlessBuffers[] : register(t1, space1);
the output after compilation:
UniformConstant type.2d.image[]* BindlessTextures : [[DescriptorSet(0), Binding(1), UserTypeGOOGLE]];
StorageBuffer type.ByteAddressBuffer[]* BindlessBuffers : [[DescriptorSet(0), Binding(5), UserTypeGOOGLE]];
-> DescriptorSet(0)
i do not care about bind-index, but i want to have bindless resources in separate descriptor set.
Environment
my compiler flags are:
-Wno-effects-syntax
-Wno-unused-parameter
-spirv
-fspv-reflect
-fspv-target-env=vulkan1.3
-Zsb
-HV 2021
-T 6.6
-fspv-extension=SPV_EXT_descriptor_indexing
-fspv-extension=SPV_EXT_mesh_shader
-fspv-extension=SPV_GOOGLE_hlsl_functionality1
-fspv-extension=SPV_GOOGLE_user_type
-fspv-extension=SPV_KHR_ray_query
-fspv-extension=SPV_KHR_physical_storage_buffer
-Zpr
any help would be appriciated.
thanks,