Closed chaoticbob closed 4 hours ago
None of our users are using this function and there is no way we can convert this into spirv.
We can add the overload but it will only be implemented for HLSL and is not meaningful for other targets. I am not sure how important this is though.
Hard to gauge the current importance of it currently. At least one person used it to justify a test for it. Probably should just back burner until someone comes asking for it.
We now have an umbrella issue for this. https://github.com/shader-slang/slang/issues/4495
HLSL spec for Load with status can be found in the following link. https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/t2d-load-float-int-uint-
It appears that all of Load
with status overloading is already in place.
Only one case for Buffer
is somehow missing its implementation.
$(isReadOnly?"[__readNone] ":"")
$(requireToSet)
T Load(int location, out uint status);
This can be easily implemented in a same way the other Load functions are implemented for status.
It looks like the
status
of theLoad
forBuffer
andRWBuffer
might be missing:I couldn't find anything that looked like int
hlsl.meta.slang
.Shader