summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
commit30f41c02aec763d32e62351452da9ef582bc3472 (patch)
tree6bec3f65bfdcbf7f1a631da21a6d613bef5db2fa /contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli
parent452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 (diff)
Move contrib libraries to contrib repo
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli')
-rw-r--r--contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli37
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli b/contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli
deleted file mode 100644
index 4bf8074..0000000
--- a/contrib/SDL-3.2.8/src/render/direct3d12/D3D12_Shader_Common.hlsli
+++ /dev/null
@@ -1,37 +0,0 @@
1#pragma pack_matrix( row_major )
2
3cbuffer VertexShaderConstants : register(b0)
4{
5 matrix model;
6 matrix projectionAndView;
7};
8
9#define ColorRS \
10 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \
11 "DENY_DOMAIN_SHADER_ROOT_ACCESS |" \
12 "DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \
13 "DENY_HULL_SHADER_ROOT_ACCESS )," \
14 "RootConstants(num32BitConstants=32, b0)," \
15 "RootConstants(num32BitConstants=24, b1)"\
16
17#define TextureRS \
18 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \
19 " DENY_DOMAIN_SHADER_ROOT_ACCESS |" \
20 " DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \
21 " DENY_HULL_SHADER_ROOT_ACCESS )," \
22 "RootConstants(num32BitConstants=32, b0),"\
23 "RootConstants(num32BitConstants=24, b1),"\
24 "DescriptorTable ( SRV(t0), visibility = SHADER_VISIBILITY_PIXEL ),"\
25 "DescriptorTable ( Sampler(s0), visibility = SHADER_VISIBILITY_PIXEL )"
26
27#define AdvancedRS \
28 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \
29 " DENY_DOMAIN_SHADER_ROOT_ACCESS |" \
30 " DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \
31 " DENY_HULL_SHADER_ROOT_ACCESS )," \
32 "RootConstants(num32BitConstants=32, b0),"\
33 "RootConstants(num32BitConstants=24, b1),"\
34 "DescriptorTable ( SRV(t0), visibility = SHADER_VISIBILITY_PIXEL ),"\
35 "DescriptorTable ( SRV(t1), visibility = SHADER_VISIBILITY_PIXEL ),"\
36 "DescriptorTable ( SRV(t2), visibility = SHADER_VISIBILITY_PIXEL ),"\
37 "DescriptorTable ( Sampler(s0), visibility = SHADER_VISIBILITY_PIXEL )"