Debian Codegraph @

examples/prism-hlsl.html

raw symbols SCIP
1 <h2>Full example</h2>
2 <pre><code>// Source: https://github.com/mellinoe/veldrid/blob/d60e5a036add2123a15f0da02f1da65a80503d54/src/Veldrid.ImGui/Assets/HLSL/imgui-frag.hlsl
3
4 struct PS_INPUT
5 {
6 float4 pos : SV_POSITION;
7 float4 col : COLOR0;
8 float2 uv : TEXCOORD0;
9 };
10
11 Texture2D FontTexture : register(t0);
12 sampler FontSampler : register(s0);
13
14 float4 FS(PS_INPUT input) : SV_Target
15 {
16 float4 out_col = input.col * FontTexture.Sample(FontSampler, input.uv);
17 return out_col;
18 }</code></pre>