GlCommandEncoder.setupDraw binds texel buffers with glTexBuffer, which always uses the whole buffer: the slice's offset and length are ignored.
Vulkan builds a VkBufferView from the slice's offset and range, so the same slice (e.g. a TransientMemory allocation) reads different data on OpenGL; only strictValidation rejects slices.
The code also seems to activate GL_TEXTURE0 + texture name instead of GL_TEXTURE0 + samplerIndex, which would leave the samplerBuffer on an empty texture unit and push GlStateManager's active texture out of range.
Expected: texel buffers read the same data on both backends (glTexBufferRange or always reject slices, and activate the sampler's own unit).
Comments 0
No comments.