Engine, adapter and tools without game data
This commit is contained in:
commit
e2ede736f3
3500 changed files with 1640229 additions and 0 deletions
28
engine/third_party/SDL3_ttf/examples/testgputext/shaders/shader.vert.hlsl
vendored
Normal file
28
engine/third_party/SDL3_ttf/examples/testgputext/shaders/shader.vert.hlsl
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
cbuffer uniforms : register(b0, space1)
|
||||
{
|
||||
row_major float4x4 proj_view : packoffset(c0);
|
||||
row_major float4x4 model : packoffset(c4);
|
||||
};
|
||||
|
||||
struct VSInput
|
||||
{
|
||||
float3 position : TEXCOORD0;
|
||||
float4 color : TEXCOORD1;
|
||||
float2 tex_coord : TEXCOORD2;
|
||||
};
|
||||
|
||||
struct VSOutput
|
||||
{
|
||||
float4 color : TEXCOORD0;
|
||||
float2 tex_coord : TEXCOORD1;
|
||||
float4 position : SV_Position;
|
||||
};
|
||||
|
||||
VSOutput main(VSInput input)
|
||||
{
|
||||
VSOutput output;
|
||||
output.color = input.color;
|
||||
output.tex_coord = input.tex_coord;
|
||||
output.position = mul(float4(input.position, 1.0f), mul(model, proj_view));
|
||||
return output;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue