mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 02:03:35 +00:00
92287c30b5
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.
15 lines
344 B
HLSL
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;
|
|
}
|