https://github.com/shader-slang/slang
Raw File
Tip revision: fb6cf46fd590ca6a72746fc839981e13b5bdde95 authored by Yong He on 01 December 2021, 22:35:16 UTC
Fix reinterpret lowering not done for generic functions. (#2037)
Tip revision: fb6cf46
global-uniforms.hlsl
//TEST_IGNORE_FILE
//TEST:REFLECTION:-profile ps_4_0 -target hlsl

// Confirm that we handle uniforms at global scope


float4 u;

Texture2D t;
SamplerState s;

cbuffer CB
{
	float4 v;
}

float4 w;

float4 main() : SV_Target
{
	return u + v + w + t.Sample(s, u.xy);
}
back to top