Engine, adapter and tools without game data
This commit is contained in:
commit
e2ede736f3
3500 changed files with 1640229 additions and 0 deletions
17
engine/third_party/SDL3_ttf/examples/testgputext/shaders/shader.frag.hlsl
vendored
Normal file
17
engine/third_party/SDL3_ttf/examples/testgputext/shaders/shader.frag.hlsl
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Texture2D<float4> tex : register(t0, space2);
|
||||
SamplerState samp : register(s0, space2);
|
||||
|
||||
struct PSInput {
|
||||
float4 color : TEXCOORD0;
|
||||
float2 tex_coord : TEXCOORD1;
|
||||
};
|
||||
|
||||
struct PSOutput {
|
||||
float4 color : SV_Target;
|
||||
};
|
||||
|
||||
PSOutput main(PSInput input) {
|
||||
PSOutput output;
|
||||
output.color = input.color * tex.Sample(samp, input.tex_coord);
|
||||
return output;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue