RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
d3d12shader.h File Reference
#include "d3dcommon.h"
Include dependency graph for d3d12shader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _D3D12_SIGNATURE_PARAMETER_DESC
 
struct  _D3D12_SHADER_BUFFER_DESC
 
struct  _D3D12_SHADER_VARIABLE_DESC
 
struct  _D3D12_SHADER_TYPE_DESC
 
struct  _D3D12_SHADER_DESC
 
struct  _D3D12_SHADER_INPUT_BIND_DESC
 
struct  _D3D12_LIBRARY_DESC
 
struct  _D3D12_FUNCTION_DESC
 
struct  _D3D12_PARAMETER_DESC
 

Macros

#define D3D12_SHVER_GET_TYPE(_Version)   (((_Version) >> 16) & 0xffff)
 
#define D3D12_SHVER_GET_MAJOR(_Version)   (((_Version) >> 4) & 0xf)
 
#define D3D12_SHVER_GET_MINOR(_Version)   (((_Version) >> 0) & 0xf)
 
#define D3D_RETURN_PARAMETER_INDEX   (-1)
 
#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
 
#define D3D_SHADER_REQUIRES_STENCIL_REF   0x00000200
 
#define D3D_SHADER_REQUIRES_INNER_COVERAGE   0x00000400
 
#define D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS   0x00000800
 
#define D3D_SHADER_REQUIRES_ROVS   0x00001000
 
#define D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER   0x00002000
 
#define INTERFACE   ID3D12ShaderReflectionType
 
#define INTERFACE   ID3D12ShaderReflectionVariable
 
#define INTERFACE   ID3D12ShaderReflectionConstantBuffer
 
#define INTERFACE   ID3D12ShaderReflection
 
#define INTERFACE   ID3D12LibraryReflection
 
#define INTERFACE   ID3D12FunctionReflection
 
#define INTERFACE   ID3D12FunctionParameterReflection
 

Typedefs

typedef enum D3D12_SHADER_VERSION_TYPE D3D12_SHADER_VERSION_TYPE
 
typedef D3D_RESOURCE_RETURN_TYPE D3D12_RESOURCE_RETURN_TYPE
 
typedef D3D_CBUFFER_TYPE D3D12_CBUFFER_TYPE
 
typedef struct _D3D12_SIGNATURE_PARAMETER_DESC D3D12_SIGNATURE_PARAMETER_DESC
 
typedef struct _D3D12_SHADER_BUFFER_DESC D3D12_SHADER_BUFFER_DESC
 
typedef struct _D3D12_SHADER_VARIABLE_DESC D3D12_SHADER_VARIABLE_DESC
 
typedef struct _D3D12_SHADER_TYPE_DESC D3D12_SHADER_TYPE_DESC
 
typedef D3D_TESSELLATOR_DOMAIN D3D12_TESSELLATOR_DOMAIN
 
typedef D3D_TESSELLATOR_PARTITIONING D3D12_TESSELLATOR_PARTITIONING
 
typedef D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D12_TESSELLATOR_OUTPUT_PRIMITIVE
 
typedef struct _D3D12_SHADER_DESC D3D12_SHADER_DESC
 
typedef struct _D3D12_SHADER_INPUT_BIND_DESC D3D12_SHADER_INPUT_BIND_DESC
 
typedef struct _D3D12_LIBRARY_DESC D3D12_LIBRARY_DESC
 
typedef struct _D3D12_FUNCTION_DESC D3D12_FUNCTION_DESC
 
typedef struct _D3D12_PARAMETER_DESC D3D12_PARAMETER_DESC
 
typedef interface ID3D12ShaderReflectionType ID3D12ShaderReflectionType
 
typedef interface ID3D12ShaderReflectionTypeLPD3D12SHADERREFLECTIONTYPE
 
typedef interface ID3D12ShaderReflectionVariable ID3D12ShaderReflectionVariable
 
typedef interface ID3D12ShaderReflectionVariableLPD3D12SHADERREFLECTIONVARIABLE
 
typedef interface ID3D12ShaderReflectionConstantBuffer ID3D12ShaderReflectionConstantBuffer
 
typedef interface ID3D12ShaderReflectionConstantBufferLPD3D12SHADERREFLECTIONCONSTANTBUFFER
 
typedef interface ID3D12ShaderReflection ID3D12ShaderReflection
 
typedef interface ID3D12ShaderReflectionLPD3D12SHADERREFLECTION
 
typedef interface ID3D12LibraryReflection ID3D12LibraryReflection
 
typedef interface ID3D12LibraryReflectionLPD3D12LIBRARYREFLECTION
 
typedef interface ID3D12FunctionReflection ID3D12FunctionReflection
 
typedef interface ID3D12FunctionReflectionLPD3D12FUNCTIONREFLECTION
 
typedef interface ID3D12FunctionParameterReflection ID3D12FunctionParameterReflection
 
typedef interface ID3D12FunctionParameterReflectionLPD3D12FUNCTIONPARAMETERREFLECTION
 

Enumerations

enum  D3D12_SHADER_VERSION_TYPE {
  D3D12_SHVER_PIXEL_SHADER = 0, D3D12_SHVER_VERTEX_SHADER = 1, D3D12_SHVER_GEOMETRY_SHADER = 2, D3D12_SHVER_HULL_SHADER = 3,
  D3D12_SHVER_DOMAIN_SHADER = 4, D3D12_SHVER_COMPUTE_SHADER = 5, D3D12_SHVER_RESERVED0 = 0xFFF0
}
 

Functions

interface DECLSPEC_UUID ("E913C351-783D-48CA-A1D1-4F306284AD56") ID3D12ShaderReflectionType
 
 DEFINE_GUID (IID_ID3D12ShaderReflectionType, 0xe913c351, 0x783d, 0x48ca, 0xa1, 0xd1, 0x4f, 0x30, 0x62, 0x84, 0xad, 0x56)
 
 DECLARE_INTERFACE (ID3D12ShaderReflectionType)
 
interface DECLSPEC_UUID ("8337A8A6-A216-444A-B2F4-314733A73AEA") ID3D12ShaderReflectionVariable
 
 DEFINE_GUID (IID_ID3D12ShaderReflectionVariable, 0x8337a8a6, 0xa216, 0x444a, 0xb2, 0xf4, 0x31, 0x47, 0x33, 0xa7, 0x3a, 0xea)
 
 DECLARE_INTERFACE (ID3D12ShaderReflectionVariable)
 
interface DECLSPEC_UUID ("C59598B4-48B3-4869-B9B1-B1618B14A8B7") ID3D12ShaderReflectionConstantBuffer
 
 DEFINE_GUID (IID_ID3D12ShaderReflectionConstantBuffer, 0xc59598b4, 0x48b3, 0x4869, 0xb9, 0xb1, 0xb1, 0x61, 0x8b, 0x14, 0xa8, 0xb7)
 
 DECLARE_INTERFACE (ID3D12ShaderReflectionConstantBuffer)
 
interface DECLSPEC_UUID ("5A58797D-A72C-478D-8BA2-EFC6B0EFE88E") ID3D12ShaderReflection
 
 DEFINE_GUID (IID_ID3D12ShaderReflection, 0x5a58797d, 0xa72c, 0x478d, 0x8b, 0xa2, 0xef, 0xc6, 0xb0, 0xef, 0xe8, 0x8e)
 
 DECLARE_INTERFACE_ (ID3D12ShaderReflection, IUnknown)
 
interface DECLSPEC_UUID ("8E349D19-54DB-4A56-9DC9-119D87BDB804") ID3D12LibraryReflection
 
 DEFINE_GUID (IID_ID3D12LibraryReflection, 0x8e349d19, 0x54db, 0x4a56, 0x9d, 0xc9, 0x11, 0x9d, 0x87, 0xbd, 0xb8, 0x4)
 
 DECLARE_INTERFACE_ (ID3D12LibraryReflection, IUnknown)
 
interface DECLSPEC_UUID ("1108795C-2772-4BA9-B2A8-D464DC7E2799") ID3D12FunctionReflection
 
 DEFINE_GUID (IID_ID3D12FunctionReflection, 0x1108795c, 0x2772, 0x4ba9, 0xb2, 0xa8, 0xd4, 0x64, 0xdc, 0x7e, 0x27, 0x99)
 
 DECLARE_INTERFACE (ID3D12FunctionReflection)
 
interface DECLSPEC_UUID ("EC25F42D-7006-4F2B-B33E-02CC3375733F") ID3D12FunctionParameterReflection
 
 DEFINE_GUID (IID_ID3D12FunctionParameterReflection, 0xec25f42d, 0x7006, 0x4f2b, 0xb3, 0x3e, 0x2, 0xcc, 0x33, 0x75, 0x73, 0x3f)
 
 DECLARE_INTERFACE (ID3D12FunctionParameterReflection)
 

Macro Definition Documentation

◆ D3D12_SHVER_GET_MAJOR

#define D3D12_SHVER_GET_MAJOR (   _Version)    (((_Version) >> 4) & 0xf)

◆ D3D12_SHVER_GET_MINOR

#define D3D12_SHVER_GET_MINOR (   _Version)    (((_Version) >> 0) & 0xf)

◆ D3D12_SHVER_GET_TYPE

#define D3D12_SHVER_GET_TYPE (   _Version)    (((_Version) >> 16) & 0xffff)

◆ D3D_RETURN_PARAMETER_INDEX

#define D3D_RETURN_PARAMETER_INDEX   (-1)

◆ D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS

#define D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS   0x00000020

◆ D3D_SHADER_REQUIRES_11_1_SHADER_EXTENSIONS

#define D3D_SHADER_REQUIRES_11_1_SHADER_EXTENSIONS   0x00000040

◆ D3D_SHADER_REQUIRES_64_UAVS

#define D3D_SHADER_REQUIRES_64_UAVS   0x00000008

◆ D3D_SHADER_REQUIRES_DOUBLES

#define D3D_SHADER_REQUIRES_DOUBLES   0x00000001

◆ D3D_SHADER_REQUIRES_EARLY_DEPTH_STENCIL

#define D3D_SHADER_REQUIRES_EARLY_DEPTH_STENCIL   0x00000002

◆ D3D_SHADER_REQUIRES_INNER_COVERAGE

#define D3D_SHADER_REQUIRES_INNER_COVERAGE   0x00000400

◆ D3D_SHADER_REQUIRES_LEVEL_9_COMPARISON_FILTERING

#define D3D_SHADER_REQUIRES_LEVEL_9_COMPARISON_FILTERING   0x00000080

◆ D3D_SHADER_REQUIRES_MINIMUM_PRECISION

#define D3D_SHADER_REQUIRES_MINIMUM_PRECISION   0x00000010

◆ D3D_SHADER_REQUIRES_ROVS

#define D3D_SHADER_REQUIRES_ROVS   0x00001000

◆ D3D_SHADER_REQUIRES_STENCIL_REF

#define D3D_SHADER_REQUIRES_STENCIL_REF   0x00000200

◆ D3D_SHADER_REQUIRES_TILED_RESOURCES

#define D3D_SHADER_REQUIRES_TILED_RESOURCES   0x00000100

◆ D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS

#define D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS   0x00000800

◆ D3D_SHADER_REQUIRES_UAVS_AT_EVERY_STAGE

#define D3D_SHADER_REQUIRES_UAVS_AT_EVERY_STAGE   0x00000004

◆ D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER

#define D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER   0x00002000

◆ INTERFACE [1/7]

#define INTERFACE   ID3D12ShaderReflectionType

◆ INTERFACE [2/7]

#define INTERFACE   ID3D12ShaderReflectionVariable

◆ INTERFACE [3/7]

#define INTERFACE   ID3D12ShaderReflectionConstantBuffer

◆ INTERFACE [4/7]

#define INTERFACE   ID3D12ShaderReflection

◆ INTERFACE [5/7]

#define INTERFACE   ID3D12LibraryReflection

◆ INTERFACE [6/7]

#define INTERFACE   ID3D12FunctionReflection

◆ INTERFACE [7/7]

#define INTERFACE   ID3D12FunctionParameterReflection

Typedef Documentation

◆ D3D12_CBUFFER_TYPE

◆ D3D12_FUNCTION_DESC

◆ D3D12_LIBRARY_DESC

◆ D3D12_PARAMETER_DESC

◆ D3D12_RESOURCE_RETURN_TYPE

◆ D3D12_SHADER_BUFFER_DESC

◆ D3D12_SHADER_DESC

◆ D3D12_SHADER_INPUT_BIND_DESC

◆ D3D12_SHADER_TYPE_DESC

◆ D3D12_SHADER_VARIABLE_DESC

◆ D3D12_SHADER_VERSION_TYPE

◆ D3D12_SIGNATURE_PARAMETER_DESC

◆ D3D12_TESSELLATOR_DOMAIN

◆ D3D12_TESSELLATOR_OUTPUT_PRIMITIVE

◆ D3D12_TESSELLATOR_PARTITIONING

◆ ID3D12FunctionParameterReflection

◆ ID3D12FunctionReflection

◆ ID3D12LibraryReflection

◆ ID3D12ShaderReflection

◆ ID3D12ShaderReflectionConstantBuffer

◆ ID3D12ShaderReflectionType

◆ ID3D12ShaderReflectionVariable

◆ LPD3D12FUNCTIONPARAMETERREFLECTION

◆ LPD3D12FUNCTIONREFLECTION

◆ LPD3D12LIBRARYREFLECTION

◆ LPD3D12SHADERREFLECTION

◆ LPD3D12SHADERREFLECTIONCONSTANTBUFFER

◆ LPD3D12SHADERREFLECTIONTYPE

◆ LPD3D12SHADERREFLECTIONVARIABLE

Enumeration Type Documentation

◆ D3D12_SHADER_VERSION_TYPE

Enumerator
D3D12_SHVER_PIXEL_SHADER 
D3D12_SHVER_VERTEX_SHADER 
D3D12_SHVER_GEOMETRY_SHADER 
D3D12_SHVER_HULL_SHADER 
D3D12_SHVER_DOMAIN_SHADER 
D3D12_SHVER_COMPUTE_SHADER 
D3D12_SHVER_RESERVED0 

Function Documentation

◆ DECLARE_INTERFACE() [1/5]

DECLARE_INTERFACE ( ID3D12ShaderReflectionType  )

◆ DECLARE_INTERFACE() [2/5]

DECLARE_INTERFACE ( ID3D12ShaderReflectionVariable  )

◆ DECLARE_INTERFACE() [3/5]

DECLARE_INTERFACE ( ID3D12ShaderReflectionConstantBuffer  )

◆ DECLARE_INTERFACE() [4/5]

DECLARE_INTERFACE ( ID3D12FunctionReflection  )

◆ DECLARE_INTERFACE() [5/5]

DECLARE_INTERFACE ( ID3D12FunctionParameterReflection  )

◆ DECLARE_INTERFACE_() [1/2]

DECLARE_INTERFACE_ ( ID3D12ShaderReflection  ,
IUnknown   
)
Here is the call graph for this function:

◆ DECLARE_INTERFACE_() [2/2]

DECLARE_INTERFACE_ ( ID3D12LibraryReflection  ,
IUnknown   
)
Here is the call graph for this function:

◆ DECLSPEC_UUID() [1/7]

interface DECLSPEC_UUID ( "E913C351-783D-48CA-A1D1-4F306284AD56"  )

◆ DECLSPEC_UUID() [2/7]

interface DECLSPEC_UUID ( "8337A8A6-A216-444A-B2F4-314733A73AEA"  )

◆ DECLSPEC_UUID() [3/7]

interface DECLSPEC_UUID ( "C59598B4-48B3-4869-B9B1-B1618B14A8B7"  )

◆ DECLSPEC_UUID() [4/7]

interface DECLSPEC_UUID ( "5A58797D-A72C-478D-8BA2-EFC6B0EFE88E"  )

◆ DECLSPEC_UUID() [5/7]

interface DECLSPEC_UUID ( "8E349D19-54DB-4A56-9DC9-119D87BDB804"  )

◆ DECLSPEC_UUID() [6/7]

interface DECLSPEC_UUID ( "1108795C-2772-4BA9-B2A8-D464DC7E2799"  )

◆ DECLSPEC_UUID() [7/7]

interface DECLSPEC_UUID ( "EC25F42D-7006-4F2B-B33E-02CC3375733F"  )

◆ DEFINE_GUID() [1/7]

DEFINE_GUID ( IID_ID3D12ShaderReflectionType  ,
0xe913c351  ,
0x783d  ,
0x48ca  ,
0xa1  ,
0xd1  ,
0x4f  ,
0x30  ,
0x62  ,
0x84  ,
0xad  ,
0x56   
)

◆ DEFINE_GUID() [2/7]

DEFINE_GUID ( IID_ID3D12ShaderReflectionVariable  ,
0x8337a8a6  ,
0xa216  ,
0x444a  ,
0xb2  ,
0xf4  ,
0x31  ,
0x47  ,
0x33  ,
0xa7  ,
0x3a  ,
0xea   
)

◆ DEFINE_GUID() [3/7]

DEFINE_GUID ( IID_ID3D12ShaderReflectionConstantBuffer  ,
0xc59598b4  ,
0x48b3  ,
0x4869  ,
0xb9  ,
0xb1  ,
0xb1  ,
0x61  ,
0x8b  ,
0x14  ,
0xa8  ,
0xb7   
)

◆ DEFINE_GUID() [4/7]

DEFINE_GUID ( IID_ID3D12ShaderReflection  ,
0x5a58797d  ,
0xa72c  ,
0x478d  ,
0x8b  ,
0xa2  ,
0xef  ,
0xc6  ,
0xb0  ,
0xef  ,
0xe8  ,
0x8e   
)

◆ DEFINE_GUID() [5/7]

DEFINE_GUID ( IID_ID3D12LibraryReflection  ,
0x8e349d19  ,
0x54db  ,
0x4a56  ,
0x9d  ,
0xc9  ,
0x11  ,
0x9d  ,
0x87  ,
0xbd  ,
0xb8  ,
0x4   
)

◆ DEFINE_GUID() [6/7]

DEFINE_GUID ( IID_ID3D12FunctionReflection  ,
0x1108795c  ,
0x2772  ,
0x4ba9  ,
0xb2  ,
0xa8  ,
0xd4  ,
0x64  ,
0xdc  ,
0x7e  ,
0x27  ,
0x99   
)

◆ DEFINE_GUID() [7/7]

DEFINE_GUID ( IID_ID3D12FunctionParameterReflection  ,
0xec25f42d  ,
0x7006  ,
0x4f2b  ,
0xb3  ,
0x3e  ,
0x2  ,
0xcc  ,
0x33  ,
0x75  ,
0x73  ,
0x3f   
)