// image-load.slang // This test confirms that `.Load()` on a `RWTexure*` // gets properly converted to a call to `imageLoad` // and not just `texelFetch` as it would for a `Texture*`. //TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage compute struct Params { RWTexture2DArray tex; } ParameterBlock gParams; void main(uint3 tid : SV_DispatchThreadID) { float f = gParams.tex.Load(int3(tid.xy, tid.z)); }