You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
layout(binding=1) Sampler3D sampler;
...
float4 fragmentMain(...)
{
int sizeX;
int sizeY;
int sizeZ;
sampler.GetDimensions(sizeX, sizeY, sizeZ);
...
}
This shader doesn't work for me since it generates #extension GL_EXT_samplerless_texture_functions : require at the top, but that extension does not exist in regular OpenGL. I understand that Slang is not prioritizing/supporting GLSL shaders for OpenGL, but unless I'm missing something it's not really required in this situation anyway.
The text was updated successfully, but these errors were encountered:
\source\slang\slang-core-module-textures.cpp line 494 needs to be made conditional so we don't emit that extension requirement if we are emitting code for the combined sampler.
However, isCombined is currently a generic parameter instead of a meta parameter. We can avoid making isCombined to be another meta parameter by calling __requireGLSLExtension() inside an if (isCombined != 0) in the body of the GetDimensions() function for glsl.
cheneym2
added a commit
to cheneym2/slang
that referenced
this issue
Nov 8, 2024
I'm trying to get dimensions out of a 3d texture:
This shader doesn't work for me since it generates
#extension GL_EXT_samplerless_texture_functions : require
at the top, but that extension does not exist in regular OpenGL. I understand that Slang is not prioritizing/supporting GLSL shaders for OpenGL, but unless I'm missing something it's not really required in this situation anyway.The text was updated successfully, but these errors were encountered: