mirror of
				https://github.com/Zelda64Recomp/Zelda64Recomp.git
				synced 2025-10-30 08:03:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			511 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			511 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
struct Input {
 | 
						|
    float4x4 transform;
 | 
						|
    float2 translation;
 | 
						|
};
 | 
						|
 | 
						|
[[vk::push_constant]]
 | 
						|
ConstantBuffer<Input> gInput : register(b0, space0);
 | 
						|
 | 
						|
void VSMain(
 | 
						|
    in float2 iPosition : POSITION,
 | 
						|
    in float4 iColor : COLOR,
 | 
						|
    in float2 iUV : TEXCOORD,
 | 
						|
    out float4 oColor : COLOR,
 | 
						|
    out float2 oUV : TEXCOORD,
 | 
						|
    out float4 oPosition : SV_Position
 | 
						|
)
 | 
						|
{
 | 
						|
	float2 translatedPos = iPosition + gInput.translation;
 | 
						|
	oPosition = mul(gInput.transform, float4(translatedPos, 0, 1));
 | 
						|
 | 
						|
	oColor = iColor;
 | 
						|
	oUV = iUV;
 | 
						|
}
 |