wgpu/naga/tests/out/hlsl/texture-arg.hlsl
Jim Blandy 92287c30b5 [naga hlsl-out] Use Baked for baked expressions.
Make the HLSL backend more like other backends by using `back::Baked`
to generate names for baked expression identifiers. This removes the
final uses of `Handle::index` from the HLSL backend.

This is separated out from the previous commit because it changes lots
of snapshot tests, whereas the previous commit has no effect on Naga's
output.
2024-06-21 09:56:40 +02:00

15 lines
344 B
HLSL

Texture2D<float4> Texture : register(t0);
SamplerState Sampler : register(s1);
float4 test(Texture2D<float4> Passed_Texture, SamplerState Passed_Sampler)
{
float4 _e5 = Passed_Texture.Sample(Passed_Sampler, float2(0.0, 0.0));
return _e5;
}
float4 main() : SV_Target0
{
const float4 _e2 = test(Texture, Sampler);
return _e2;
}