Closed chaoticbob closed 6 days ago
I suppose there are 2 problems to address here:
tbuffer
I agree. Apologies, I was going for the least amount of work needed to address the current behavior. But you're right, would be good to have the functionality.
This also applies to TextureBuffer
(note: it's much less used based on memory from previous experience).
I suggest to use SLANG_UNIMPLEMENTED for now and close. And create a new issue for the actual implementation.
A seperate issue was made to implement spirv and metal for TextureBuffer (significant and simmilar changes required): #4435
hlsl and glsl should both work once the linked PR is merged.
The shader below results in
NULL
pointer access since the rules for texture buffer objects are not implemented:Call chain starts in
slang-type-layout.cpp:createParameterGroupTypeLayout()
.This is causing a silent failure, should return an error message at the very least if not implemented.
Shader