Atlas - texture_rgba.frag.hlsl
Home / ext / SDL / src / render / gpu / shaders Lines: 1 | Size: 493 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1 2cbuffer Constants : register(b0, space3) 3{ 4 float color_scale; 5}; 6 7Texture2D u_texture : register(t0, space2); 8SamplerState u_sampler : register(s0, space2); 9 10struct PSInput { 11 float4 v_color : COLOR0; 12 float2 v_uv : TEXCOORD0; 13}; 14 15struct PSOutput { 16 float4 o_color : SV_Target; 17}; 18 19#include "common.frag.hlsli" 20 21PSOutput main(PSInput input) { 22 PSOutput output; 23 output.o_color = GetOutputColor(u_texture.Sample(u_sampler, input.v_uv)) * input.v_color; 24 return output; 25} 26[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.