o3de / o3de-azslc

Amazon Shader Language (AZSL) Compiler
Other
23 stars 14 forks source link

`sample[x](uv)` not supported #70

Open siliconvoodoo opened 2 years ago

siliconvoodoo commented 2 years ago

from https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-texture2dms-sampleoperatorindex

Texture2DMS<float4, 8> s_msTexture;

float4 main( float2 tcoord : TEXCOORD0 ) : SV_Target
{
     return s_msTexture.sample[2][tcoord];
}

results in

syntax error #1: mismatched input 'sample' expecting {'::', Identifier} (sample is a keyword)

Also to add in src/Texture2DMSto2DCodeMutator.cpp