The descriptor type that Vulkan calls "uniform texel buffer" represents a concept that, in OpenGL parlance, is called a "buffer texture". While normally the GLSL type for this would be samplerBuffer
, the Vulkan flavor of GLSL uses textureBuffer
instead.
The corresponding descriptor for this type should of course use the VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
type. However, since Vulkan doesn't share OpenGL's notion that this is some kind of texture, the descriptor's data is a VkBufferView
, not a VkImage
or VkImageView
. Specifically, VkWriteDescriptorSet::pTexelBufferView
.