mirror of
https://github.com/libretro/RetroArch.git
synced 2024-05-20 13:27:22 -04:00
da29639d70
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: f3a75d1d4ba6b559d5c89550f800a518baad522d
30 lines
574 B
GLSL
30 lines
574 B
GLSL
Texture2D<float4> uTexture : register(t0);
|
|
SamplerState _uTexture_sampler : register(s0);
|
|
|
|
static min16float4 FragColor;
|
|
static min16float2 UV;
|
|
|
|
struct SPIRV_Cross_Input
|
|
{
|
|
min16float2 UV : TEXCOORD0;
|
|
};
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
min16float4 FragColor : SV_Target0;
|
|
};
|
|
|
|
void frag_main()
|
|
{
|
|
FragColor = min16float4(uTexture.Sample(_uTexture_sampler, UV));
|
|
}
|
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
|
{
|
|
UV = stage_input.UV;
|
|
frag_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.FragColor = FragColor;
|
|
return stage_output;
|
|
}
|