Skip to content

Commit 1ce5e78

Browse files
authored
Fix a regression that GL_EXT_samplerless_texture_functions is missing (#5758)
1 parent 697045f commit 1ce5e78

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

source/slang/hlsl.meta.slang

+2-8
Original file line numberDiff line numberDiff line change
@@ -3034,13 +3034,6 @@ extension _Texture<T,Shape,isArray,0,sampleCount,0,isShadow,isCombined,format>
30343034
static const int isMS = 0;
30353035
static const int access = $(kCoreModule_ResourceAccessReadOnly);
30363036
//@public:
3037-
[__readNone]
3038-
[require(glsl, texture_sm_4_1_samplerless)]
3039-
T __glsl_load(vector<int, Shape.dimensions+isArray> location)
3040-
{
3041-
__intrinsic_asm "$ctexelFetch($0, ($1), 0)$z";
3042-
}
3043-
30443037
[__readNone]
30453038
[ForceInline]
30463039
[require(cpp_glsl_hlsl_metal_spirv_wgsl, texture_sm_4_1_samplerless)]
@@ -3235,7 +3228,8 @@ extension _Texture<T,Shape,isArray,0,sampleCount,0,isShadow,isCombined,format>
32353228
case glsl:
32363229
if (isCombined == 0)
32373230
__requireGLSLExtension("GL_EXT_samplerless_texture_functions");
3238-
return __glsl_load(location);
3231+
3232+
return Load(__makeVector(location, 0));
32393233
case spirv:
32403234
if (isCombined != 0)
32413235
{

0 commit comments

Comments
 (0)