From: Biswapriyo Nath nathbappai@gmail.com
--- include/d3d11shader.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/include/d3d11shader.h b/include/d3d11shader.h index 225c4344100..81d14fc3933 100644 --- a/include/d3d11shader.h +++ b/include/d3d11shader.h @@ -26,6 +26,16 @@ #define D3D_COMPILER_VERSION 47 #endif
+#define D3D_SHADER_REQUIRES_DOUBLES 0x00000001 +#define D3D_SHADER_REQUIRES_EARLY_DEPTH_STENCIL 0x00000002 +#define D3D_SHADER_REQUIRES_UAVS_AT_EVERY_STAGE 0x00000004 +#define D3D_SHADER_REQUIRES_64_UAVS 0x00000008 +#define D3D_SHADER_REQUIRES_MINIMUM_PRECISION 0x00000010 +#define D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS 0x00000020 +#define D3D_SHADER_REQUIRES_11_1_SHADER_EXTENSIONS 0x00000040 +#define D3D_SHADER_REQUIRES_LEVEL_9_COMPARISON_FILTERING 0x00000080 +#define D3D_SHADER_REQUIRES_TILED_RESOURCES 0x00000100 + /* These are defined as version-neutral in d3dcommon.h */ typedef D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE;
From: Biswapriyo Nath nathbappai@gmail.com
--- include/d3d12shader.idl | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/d3d12shader.idl b/include/d3d12shader.idl index f6cc35a843d..d66080f4b40 100644 --- a/include/d3d12shader.idl +++ b/include/d3d12shader.idl @@ -31,6 +31,10 @@ typedef enum D3D12_SHADER_VERSION_TYPE D3D12_SHVER_RESERVED0 = 0xfff0, } D3D12_SHADER_VERSION_TYPE;
+cpp_quote("#define D3D12_SHVER_GET_TYPE(v) (((v) >> 16) & 0xffff)") +cpp_quote("#define D3D12_SHVER_GET_MAJOR(v) (((v) >> 4) & 0xf)") +cpp_quote("#define D3D12_SHVER_GET_MINOR(v) (((v) >> 0) & 0xf)") + typedef struct _D3D12_SHADER_DESC { UINT Version;
From: Biswapriyo Nath nathbappai@gmail.com
--- include/d3dcommon.idl | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/include/d3dcommon.idl b/include/d3dcommon.idl index 5ffb4cd5b5b..7d3c486d049 100644 --- a/include/d3dcommon.idl +++ b/include/d3dcommon.idl @@ -658,6 +658,8 @@ typedef enum D3D_NAME D3D_NAME_COVERAGE, D3D_NAME_DEPTH_GREATER_EQUAL, D3D_NAME_DEPTH_LESS_EQUAL, + D3D_NAME_STENCIL_REF, + D3D_NAME_INNER_COVERAGE, D3D10_NAME_UNDEFINED = 0, D3D10_NAME_POSITION, D3D10_NAME_CLIP_DISTANCE, @@ -680,6 +682,11 @@ typedef enum D3D_NAME D3D10_NAME_COVERAGE, D3D11_NAME_DEPTH_GREATER_EQUAL, D3D11_NAME_DEPTH_LESS_EQUAL, + D3D11_NAME_STENCIL_REF, + D3D11_NAME_INNER_COVERAGE, + D3D12_NAME_BARYCENTRICS = 23, + D3D12_NAME_SHADINGRATE, + D3D12_NAME_CULLPRIMITIVE, } D3D_NAME;
typedef enum _D3D_SHADER_INPUT_TYPE
Nikolay Sivov (@nsivov) commented about include/d3dcommon.idl:
D3D10_NAME_COVERAGE, D3D11_NAME_DEPTH_GREATER_EQUAL, D3D11_NAME_DEPTH_LESS_EQUAL,
- D3D11_NAME_STENCIL_REF,
- D3D11_NAME_INNER_COVERAGE,
- D3D12_NAME_BARYCENTRICS = 23,
- D3D12_NAME_SHADINGRATE,
- D3D12_NAME_CULLPRIMITIVE,
Please add D3D_NAME_* variants for those three D3D12_NAMEs as well.
On Fri Jun 28 20:37:50 2024 +0000, Nikolay Sivov wrote:
Please add D3D_NAME_* variants for those three D3D12_NAMEs as well.
D3D_NAME_BARYCENTRICS, D3D_NAME_SHADINGRATE and D3D_NAME_CULLPRIMITIVE are already defined.