summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-12-04 14:53:31 -0800
committerGitHub <noreply@github.com>2024-12-04 14:53:31 -0800
commit1ce5e781633f0c470f334b75e962b450a069982e (patch)
treee8c52eabb469b89f5a651adb58373529c3b3e942 /source
parent697045f1b4f7d0977c69fd5b67089d735fff428d (diff)
Fix a regression that GL_EXT_samplerless_texture_functions is missing (#5758)
Diffstat (limited to 'source')
-rw-r--r--source/slang/hlsl.meta.slang10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index 7610dd395..412d5b6a0 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -3035,13 +3035,6 @@ extension _Texture<T,Shape,isArray,0,sampleCount,0,isShadow,isCombined,format>
static const int access = $(kCoreModule_ResourceAccessReadOnly);
//@public:
[__readNone]
- [require(glsl, texture_sm_4_1_samplerless)]
- T __glsl_load(vector<int, Shape.dimensions+isArray> location)
- {
- __intrinsic_asm "$ctexelFetch($0, ($1), 0)$z";
- }
-
- [__readNone]
[ForceInline]
[require(cpp_glsl_hlsl_metal_spirv_wgsl, texture_sm_4_1_samplerless)]
T Load(vector<int, Shape.dimensions+isArray+1> location)
@@ -3235,7 +3228,8 @@ extension _Texture<T,Shape,isArray,0,sampleCount,0,isShadow,isCombined,format>
case glsl:
if (isCombined == 0)
__requireGLSLExtension("GL_EXT_samplerless_texture_functions");
- return __glsl_load(location);
+
+ return Load(__makeVector(location, 0));
case spirv:
if (isCombined != 0)
{