From f506bfd018aa28f22aeb7d28c15595829d111464 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Fri, 28 Jun 2024 18:40:49 +0000 Subject: [PATCH] include: Add macros for d3d12 shader version in d3d12shader.idl. --- 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;