Atlas - D3D12_Shader_Common.hlsli

Home / ext / SDL / src / render / direct3d12 Lines: 1 | Size: 1592 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#pragma pack_matrix( row_major ) 2 3cbuffer VertexShaderConstants : register(b0) 4{ 5 matrix mpv; 6}; 7 8#define ColorRS \ 9 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \ 10 "DENY_DOMAIN_SHADER_ROOT_ACCESS |" \ 11 "DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \ 12 "DENY_HULL_SHADER_ROOT_ACCESS )," \ 13 "RootConstants(num32BitConstants=16, b0)," \ 14 "RootConstants(num32BitConstants=28, b1)"\ 15 16#define TextureRS \ 17 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \ 18 " DENY_DOMAIN_SHADER_ROOT_ACCESS |" \ 19 " DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \ 20 " DENY_HULL_SHADER_ROOT_ACCESS )," \ 21 "RootConstants(num32BitConstants=16, b0),"\ 22 "RootConstants(num32BitConstants=28, b1),"\ 23 "DescriptorTable ( SRV(t0), visibility = SHADER_VISIBILITY_PIXEL ),"\ 24 "DescriptorTable ( Sampler(s0), visibility = SHADER_VISIBILITY_PIXEL )" 25 26#define AdvancedRS \ 27 "RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \ 28 " DENY_DOMAIN_SHADER_ROOT_ACCESS |" \ 29 " DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \ 30 " DENY_HULL_SHADER_ROOT_ACCESS )," \ 31 "RootConstants(num32BitConstants=16, b0),"\ 32 "RootConstants(num32BitConstants=28, b1),"\ 33 "DescriptorTable ( SRV(t0), visibility = SHADER_VISIBILITY_PIXEL ),"\ 34 "DescriptorTable ( SRV(t1), visibility = SHADER_VISIBILITY_PIXEL ),"\ 35 "DescriptorTable ( SRV(t2), visibility = SHADER_VISIBILITY_PIXEL ),"\ 36 "DescriptorTable ( Sampler(s0), visibility = SHADER_VISIBILITY_PIXEL )," \ 37 "DescriptorTable ( Sampler(s1), visibility = SHADER_VISIBILITY_PIXEL )" 38
[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.