diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-01 12:42:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 12:42:37 -0800 |
| commit | 0d01b3701aae582b5fe3b6e2c2c718bec568c741 (patch) | |
| tree | 5525bec1a786ace62263b68b89d287105c590df6 /source/slang/hlsl.meta.slang | |
| parent | 3ade07303783605ddef8c0f0c5237952c903798d (diff) | |
Various SPIRV fixes. (#3655)
* Various SPIRV fixes.
* Fix debugValue.
Diffstat (limited to 'source/slang/hlsl.meta.slang')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index 84ba11cad..5c97de525 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -1596,6 +1596,13 @@ extension __TextureImpl<T,Shape,isArray,1,sampleCount,0,isShadow,isCombined,form } } + [__readNone] + [ForceInline] + T Load(vector<int, Shape.dimensions + isArray + 1> locationAndSampleIndex) + { + return Load(__vectorReshape<Shape.dimensions + isArray>(locationAndSampleIndex), locationAndSampleIndex[Shape.dimensions + isArray]); + } + __glsl_extension(GL_EXT_samplerless_texture_functions) [__readNone] [ForceInline] |
