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

Go to the source code of this file.

Classes

struct  _D3D_SHADER_DATA
 

Macros

#define D3DCOMPILER_DLL_W   L"d3dcompiler_47.dll"
 
#define D3DCOMPILER_DLL_A   "d3dcompiler_47.dll"
 
#define D3D_COMPILER_VERSION   47
 
#define D3DCOMPILER_DLL   D3DCOMPILER_DLL_A
 
#define D3DCOMPILE_DEBUG   (1 << 0)
 
#define D3DCOMPILE_SKIP_VALIDATION   (1 << 1)
 
#define D3DCOMPILE_SKIP_OPTIMIZATION   (1 << 2)
 
#define D3DCOMPILE_PACK_MATRIX_ROW_MAJOR   (1 << 3)
 
#define D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR   (1 << 4)
 
#define D3DCOMPILE_PARTIAL_PRECISION   (1 << 5)
 
#define D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT   (1 << 6)
 
#define D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT   (1 << 7)
 
#define D3DCOMPILE_NO_PRESHADER   (1 << 8)
 
#define D3DCOMPILE_AVOID_FLOW_CONTROL   (1 << 9)
 
#define D3DCOMPILE_PREFER_FLOW_CONTROL   (1 << 10)
 
#define D3DCOMPILE_ENABLE_STRICTNESS   (1 << 11)
 
#define D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY   (1 << 12)
 
#define D3DCOMPILE_IEEE_STRICTNESS   (1 << 13)
 
#define D3DCOMPILE_OPTIMIZATION_LEVEL0   (1 << 14)
 
#define D3DCOMPILE_OPTIMIZATION_LEVEL1   0
 
#define D3DCOMPILE_OPTIMIZATION_LEVEL2   ((1 << 14) | (1 << 15))
 
#define D3DCOMPILE_OPTIMIZATION_LEVEL3   (1 << 15)
 
#define D3DCOMPILE_RESERVED16   (1 << 16)
 
#define D3DCOMPILE_RESERVED17   (1 << 17)
 
#define D3DCOMPILE_WARNINGS_ARE_ERRORS   (1 << 18)
 
#define D3DCOMPILE_RESOURCES_MAY_ALIAS   (1 << 19)
 
#define D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES   (1 << 20)
 
#define D3DCOMPILE_ALL_RESOURCES_BOUND   (1 << 21)
 
#define D3DCOMPILE_DEBUG_NAME_FOR_SOURCE   (1 << 22)
 
#define D3DCOMPILE_DEBUG_NAME_FOR_BINARY   (1 << 23)
 
#define D3DCOMPILE_EFFECT_CHILD_EFFECT   (1 << 0)
 
#define D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS   (1 << 1)
 
#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST   0
 
#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_0   (1 << 4)
 
#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_1   (1 << 5)
 
#define D3D_COMPILE_STANDARD_FILE_INCLUDE   ((ID3DInclude*)(UINT_PTR)1)
 
#define D3DCOMPILE_SECDATA_MERGE_UAV_SLOTS   0x00000001
 
#define D3DCOMPILE_SECDATA_PRESERVE_TEMPLATE_SLOTS   0x00000002
 
#define D3DCOMPILE_SECDATA_REQUIRE_TEMPLATE_MATCH   0x00000004
 
#define D3D_DISASM_ENABLE_COLOR_CODE   0x00000001
 
#define D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS   0x00000002
 
#define D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING   0x00000004
 
#define D3D_DISASM_ENABLE_INSTRUCTION_CYCLE   0x00000008
 
#define D3D_DISASM_DISABLE_DEBUG_INFO   0x00000010
 
#define D3D_DISASM_ENABLE_INSTRUCTION_OFFSET   0x00000020
 
#define D3D_DISASM_INSTRUCTION_ONLY   0x00000040
 
#define D3D_DISASM_PRINT_HEX_LITERALS   0x00000080
 
#define D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE   0x00000001
 
#define D3D_COMPRESS_SHADER_KEEP_ALL_PARTS   0x00000001
 

Typedefs

typedef HRESULT(WINAPI * pD3DCompile) (LPCVOID pSrcData, SIZE_T SrcDataSize, LPCSTR pFileName, CONST D3D_SHADER_MACRO *pDefines, ID3DInclude *pInclude, LPCSTR pEntrypoint, LPCSTR pTarget, UINT Flags1, UINT Flags2, ID3DBlob **ppCode, ID3DBlob **ppErrorMsgs)
 
typedef HRESULT(WINAPI * pD3DPreprocess) (LPCVOID pSrcData, SIZE_T SrcDataSize, LPCSTR pFileName, CONST D3D_SHADER_MACRO *pDefines, ID3DInclude *pInclude, ID3DBlob **ppCodeText, ID3DBlob **ppErrorMsgs)
 
typedef HRESULT(WINAPI * pD3DDisassemble) (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT Flags, _In_opt_ LPCSTR szComments, _Out_ ID3DBlob **ppDisassembly)
 
typedef enum D3DCOMPILER_STRIP_FLAGS D3DCOMPILER_STRIP_FLAGS
 
typedef enum D3D_BLOB_PART D3D_BLOB_PART
 
typedef struct _D3D_SHADER_DATA D3D_SHADER_DATA
 

Enumerations

enum  D3DCOMPILER_STRIP_FLAGS {
  D3DCOMPILER_STRIP_REFLECTION_DATA = 0x00000001, D3DCOMPILER_STRIP_DEBUG_INFO = 0x00000002, D3DCOMPILER_STRIP_TEST_BLOBS = 0x00000004, D3DCOMPILER_STRIP_PRIVATE_DATA = 0x00000008,
  D3DCOMPILER_STRIP_ROOT_SIGNATURE = 0x00000010, D3DCOMPILER_STRIP_FORCE_DWORD = 0x7fffffff
}
 
enum  D3D_BLOB_PART {
  D3D_BLOB_INPUT_SIGNATURE_BLOB, D3D_BLOB_OUTPUT_SIGNATURE_BLOB, D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB, D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB,
  D3D_BLOB_ALL_SIGNATURE_BLOB, D3D_BLOB_DEBUG_INFO, D3D_BLOB_LEGACY_SHADER, D3D_BLOB_XNA_PREPASS_SHADER,
  D3D_BLOB_XNA_SHADER, D3D_BLOB_PDB, D3D_BLOB_PRIVATE_DATA, D3D_BLOB_ROOT_SIGNATURE,
  D3D_BLOB_DEBUG_NAME, D3D_BLOB_TEST_ALTERNATE_SHADER = 0x8000, D3D_BLOB_TEST_COMPILE_DETAILS, D3D_BLOB_TEST_COMPILE_PERF,
  D3D_BLOB_TEST_COMPILE_REPORT
}
 

Functions

HRESULT WINAPI D3DReadFileToBlob (_In_ LPCWSTR pFileName, _Out_ ID3DBlob **ppContents)
 
HRESULT WINAPI D3DWriteBlobToFile (_In_ ID3DBlob *pBlob, _In_ LPCWSTR pFileName, _In_ BOOL bOverwrite)
 
HRESULT WINAPI D3DCompile (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_opt_ LPCSTR pSourceName, _In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO *pDefines, _In_opt_ ID3DInclude *pInclude, _In_opt_ LPCSTR pEntrypoint, _In_ LPCSTR pTarget, _In_ UINT Flags1, _In_ UINT Flags2, _Out_ ID3DBlob **ppCode, _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppErrorMsgs)
 
HRESULT WINAPI D3DCompile2 (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_opt_ LPCSTR pSourceName, _In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO *pDefines, _In_opt_ ID3DInclude *pInclude, _In_ LPCSTR pEntrypoint, _In_ LPCSTR pTarget, _In_ UINT Flags1, _In_ UINT Flags2, _In_ UINT SecondaryDataFlags, _In_reads_bytes_opt_(SecondaryDataSize) LPCVOID pSecondaryData, _In_ SIZE_T SecondaryDataSize, _Out_ ID3DBlob **ppCode, _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppErrorMsgs)
 
HRESULT WINAPI D3DCompileFromFile (_In_ LPCWSTR pFileName, _In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO *pDefines, _In_opt_ ID3DInclude *pInclude, _In_ LPCSTR pEntrypoint, _In_ LPCSTR pTarget, _In_ UINT Flags1, _In_ UINT Flags2, _Out_ ID3DBlob **ppCode, _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppErrorMsgs)
 
HRESULT WINAPI D3DPreprocess (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_opt_ LPCSTR pSourceName, _In_opt_ CONST D3D_SHADER_MACRO *pDefines, _In_opt_ ID3DInclude *pInclude, _Out_ ID3DBlob **ppCodeText, _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppErrorMsgs)
 
HRESULT WINAPI D3DGetDebugInfo (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _Out_ ID3DBlob **ppDebugInfo)
 
HRESULT WINAPI D3DReflect (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ REFIID pInterface, _Out_ void **ppReflector)
 
HRESULT WINAPI D3DReflectLibrary (__in_bcount(SrcDataSize) LPCVOID pSrcData, __in SIZE_T SrcDataSize, __in REFIID riid, __out LPVOID *ppReflector)
 
HRESULT WINAPI D3DDisassemble (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT Flags, _In_opt_ LPCSTR szComments, _Out_ ID3DBlob **ppDisassembly)
 
HRESULT WINAPI D3DDisassembleRegion (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT Flags, _In_opt_ LPCSTR szComments, _In_ SIZE_T StartByteOffset, _In_ SIZE_T NumInsts, _Out_opt_ SIZE_T *pFinishByteOffset, _Out_ ID3DBlob **ppDisassembly)
 
HRESULT WINAPI D3DCreateLinker (__out interface ID3D11Linker **ppLinker)
 
HRESULT WINAPI D3DLoadModule (_In_ LPCVOID pSrcData, _In_ SIZE_T cbSrcDataSize, _Out_ interface ID3D11Module **ppModule)
 
HRESULT WINAPI D3DCreateFunctionLinkingGraph (_In_ UINT uFlags, _Out_ interface ID3D11FunctionLinkingGraph **ppFunctionLinkingGraph)
 
HRESULT WINAPI D3DGetTraceInstructionOffsets (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT Flags, _In_ SIZE_T StartInstIndex, _In_ SIZE_T NumInsts, _Out_writes_to_opt_(NumInsts, min(NumInsts, *pTotalInsts)) SIZE_T *pOffsets, _Out_opt_ SIZE_T *pTotalInsts)
 
HRESULT WINAPI D3DGetInputSignatureBlob (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _Out_ ID3DBlob **ppSignatureBlob)
 
HRESULT WINAPI D3DGetOutputSignatureBlob (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _Out_ ID3DBlob **ppSignatureBlob)
 
HRESULT WINAPI D3DGetInputAndOutputSignatureBlob (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _Out_ ID3DBlob **ppSignatureBlob)
 
HRESULT WINAPI D3DStripShader (_In_reads_bytes_(BytecodeLength) LPCVOID pShaderBytecode, _In_ SIZE_T BytecodeLength, _In_ UINT uStripFlags, _Out_ ID3DBlob **ppStrippedBlob)
 
HRESULT WINAPI D3DGetBlobPart (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ D3D_BLOB_PART Part, _In_ UINT Flags, _Out_ ID3DBlob **ppPart)
 
HRESULT WINAPI D3DSetBlobPart (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ D3D_BLOB_PART Part, _In_ UINT Flags, _In_reads_bytes_(PartSize) LPCVOID pPart, _In_ SIZE_T PartSize, _Out_ ID3DBlob **ppNewShader)
 
HRESULT WINAPI D3DCreateBlob (_In_ SIZE_T Size, _Out_ ID3DBlob **ppBlob)
 
HRESULT WINAPI D3DCompressShaders (_In_ UINT uNumShaders, _In_reads_(uNumShaders) D3D_SHADER_DATA *pShaderData, _In_ UINT uFlags, _Out_ ID3DBlob **ppCompressedData)
 
HRESULT WINAPI D3DDecompressShaders (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT uNumShaders, _In_ UINT uStartIndex, _In_reads_opt_(uNumShaders) UINT *pIndices, _In_ UINT uFlags, _Out_writes_(uNumShaders) ID3DBlob **ppShaders, _Out_opt_ UINT *pTotalShaders)
 
HRESULT WINAPI D3DDisassemble10Effect (_In_ interface ID3D10Effect *pEffect, _In_ UINT Flags, _Out_ ID3DBlob **ppDisassembly)
 

Macro Definition Documentation

◆ D3D_COMPILE_STANDARD_FILE_INCLUDE

#define D3D_COMPILE_STANDARD_FILE_INCLUDE   ((ID3DInclude*)(UINT_PTR)1)

◆ D3D_COMPILER_VERSION

#define D3D_COMPILER_VERSION   47

◆ D3D_COMPRESS_SHADER_KEEP_ALL_PARTS

#define D3D_COMPRESS_SHADER_KEEP_ALL_PARTS   0x00000001

◆ D3D_DISASM_DISABLE_DEBUG_INFO

#define D3D_DISASM_DISABLE_DEBUG_INFO   0x00000010

◆ D3D_DISASM_ENABLE_COLOR_CODE

#define D3D_DISASM_ENABLE_COLOR_CODE   0x00000001

◆ D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS

#define D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS   0x00000002

◆ D3D_DISASM_ENABLE_INSTRUCTION_CYCLE

#define D3D_DISASM_ENABLE_INSTRUCTION_CYCLE   0x00000008

◆ D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING

#define D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING   0x00000004

◆ D3D_DISASM_ENABLE_INSTRUCTION_OFFSET

#define D3D_DISASM_ENABLE_INSTRUCTION_OFFSET   0x00000020

◆ D3D_DISASM_INSTRUCTION_ONLY

#define D3D_DISASM_INSTRUCTION_ONLY   0x00000040

◆ D3D_DISASM_PRINT_HEX_LITERALS

#define D3D_DISASM_PRINT_HEX_LITERALS   0x00000080

◆ D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE

#define D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE   0x00000001

◆ D3DCOMPILE_ALL_RESOURCES_BOUND

#define D3DCOMPILE_ALL_RESOURCES_BOUND   (1 << 21)

◆ D3DCOMPILE_AVOID_FLOW_CONTROL

#define D3DCOMPILE_AVOID_FLOW_CONTROL   (1 << 9)

◆ D3DCOMPILE_DEBUG

#define D3DCOMPILE_DEBUG   (1 << 0)

◆ D3DCOMPILE_DEBUG_NAME_FOR_BINARY

#define D3DCOMPILE_DEBUG_NAME_FOR_BINARY   (1 << 23)

◆ D3DCOMPILE_DEBUG_NAME_FOR_SOURCE

#define D3DCOMPILE_DEBUG_NAME_FOR_SOURCE   (1 << 22)

◆ D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS

#define D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS   (1 << 1)

◆ D3DCOMPILE_EFFECT_CHILD_EFFECT

#define D3DCOMPILE_EFFECT_CHILD_EFFECT   (1 << 0)

◆ D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY

#define D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY   (1 << 12)

◆ D3DCOMPILE_ENABLE_STRICTNESS

#define D3DCOMPILE_ENABLE_STRICTNESS   (1 << 11)

◆ D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES

#define D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES   (1 << 20)

◆ D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_0

#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_0   (1 << 4)

◆ D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_1

#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_1   (1 << 5)

◆ D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST

#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST   0

◆ D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT

#define D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT   (1 << 7)

◆ D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT

#define D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT   (1 << 6)

◆ D3DCOMPILE_IEEE_STRICTNESS

#define D3DCOMPILE_IEEE_STRICTNESS   (1 << 13)

◆ D3DCOMPILE_NO_PRESHADER

#define D3DCOMPILE_NO_PRESHADER   (1 << 8)

◆ D3DCOMPILE_OPTIMIZATION_LEVEL0

#define D3DCOMPILE_OPTIMIZATION_LEVEL0   (1 << 14)

◆ D3DCOMPILE_OPTIMIZATION_LEVEL1

#define D3DCOMPILE_OPTIMIZATION_LEVEL1   0

◆ D3DCOMPILE_OPTIMIZATION_LEVEL2

#define D3DCOMPILE_OPTIMIZATION_LEVEL2   ((1 << 14) | (1 << 15))

◆ D3DCOMPILE_OPTIMIZATION_LEVEL3

#define D3DCOMPILE_OPTIMIZATION_LEVEL3   (1 << 15)

◆ D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR

#define D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR   (1 << 4)

◆ D3DCOMPILE_PACK_MATRIX_ROW_MAJOR

#define D3DCOMPILE_PACK_MATRIX_ROW_MAJOR   (1 << 3)

◆ D3DCOMPILE_PARTIAL_PRECISION

#define D3DCOMPILE_PARTIAL_PRECISION   (1 << 5)

◆ D3DCOMPILE_PREFER_FLOW_CONTROL

#define D3DCOMPILE_PREFER_FLOW_CONTROL   (1 << 10)

◆ D3DCOMPILE_RESERVED16

#define D3DCOMPILE_RESERVED16   (1 << 16)

◆ D3DCOMPILE_RESERVED17

#define D3DCOMPILE_RESERVED17   (1 << 17)

◆ D3DCOMPILE_RESOURCES_MAY_ALIAS

#define D3DCOMPILE_RESOURCES_MAY_ALIAS   (1 << 19)

◆ D3DCOMPILE_SECDATA_MERGE_UAV_SLOTS

#define D3DCOMPILE_SECDATA_MERGE_UAV_SLOTS   0x00000001

◆ D3DCOMPILE_SECDATA_PRESERVE_TEMPLATE_SLOTS

#define D3DCOMPILE_SECDATA_PRESERVE_TEMPLATE_SLOTS   0x00000002

◆ D3DCOMPILE_SECDATA_REQUIRE_TEMPLATE_MATCH

#define D3DCOMPILE_SECDATA_REQUIRE_TEMPLATE_MATCH   0x00000004

◆ D3DCOMPILE_SKIP_OPTIMIZATION

#define D3DCOMPILE_SKIP_OPTIMIZATION   (1 << 2)

◆ D3DCOMPILE_SKIP_VALIDATION

#define D3DCOMPILE_SKIP_VALIDATION   (1 << 1)

◆ D3DCOMPILE_WARNINGS_ARE_ERRORS

#define D3DCOMPILE_WARNINGS_ARE_ERRORS   (1 << 18)

◆ D3DCOMPILER_DLL

#define D3DCOMPILER_DLL   D3DCOMPILER_DLL_A

◆ D3DCOMPILER_DLL_A

#define D3DCOMPILER_DLL_A   "d3dcompiler_47.dll"

◆ D3DCOMPILER_DLL_W

#define D3DCOMPILER_DLL_W   L"d3dcompiler_47.dll"

Typedef Documentation

◆ D3D_BLOB_PART

◆ D3D_SHADER_DATA

◆ D3DCOMPILER_STRIP_FLAGS

◆ pD3DCompile

typedef HRESULT(WINAPI * pD3DCompile) (LPCVOID pSrcData, SIZE_T SrcDataSize, LPCSTR pFileName, CONST D3D_SHADER_MACRO *pDefines, ID3DInclude *pInclude, LPCSTR pEntrypoint, LPCSTR pTarget, UINT Flags1, UINT Flags2, ID3DBlob **ppCode, ID3DBlob **ppErrorMsgs)

◆ pD3DDisassemble

typedef HRESULT(WINAPI * pD3DDisassemble) (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ UINT Flags, _In_opt_ LPCSTR szComments, _Out_ ID3DBlob **ppDisassembly)

◆ pD3DPreprocess

typedef HRESULT(WINAPI * pD3DPreprocess) (LPCVOID pSrcData, SIZE_T SrcDataSize, LPCSTR pFileName, CONST D3D_SHADER_MACRO *pDefines, ID3DInclude *pInclude, ID3DBlob **ppCodeText, ID3DBlob **ppErrorMsgs)

Enumeration Type Documentation

◆ D3D_BLOB_PART

Enumerator
D3D_BLOB_INPUT_SIGNATURE_BLOB 
D3D_BLOB_OUTPUT_SIGNATURE_BLOB 
D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB 
D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB 
D3D_BLOB_ALL_SIGNATURE_BLOB 
D3D_BLOB_DEBUG_INFO 
D3D_BLOB_LEGACY_SHADER 
D3D_BLOB_XNA_PREPASS_SHADER 
D3D_BLOB_XNA_SHADER 
D3D_BLOB_PDB 
D3D_BLOB_PRIVATE_DATA 
D3D_BLOB_ROOT_SIGNATURE 
D3D_BLOB_DEBUG_NAME 
D3D_BLOB_TEST_ALTERNATE_SHADER 
D3D_BLOB_TEST_COMPILE_DETAILS 
D3D_BLOB_TEST_COMPILE_PERF 
D3D_BLOB_TEST_COMPILE_REPORT 

◆ D3DCOMPILER_STRIP_FLAGS

Enumerator
D3DCOMPILER_STRIP_REFLECTION_DATA 
D3DCOMPILER_STRIP_DEBUG_INFO 
D3DCOMPILER_STRIP_TEST_BLOBS 
D3DCOMPILER_STRIP_PRIVATE_DATA 
D3DCOMPILER_STRIP_ROOT_SIGNATURE 
D3DCOMPILER_STRIP_FORCE_DWORD 

Function Documentation

◆ D3DCompile()

HRESULT WINAPI D3DCompile ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_opt_ LPCSTR  pSourceName,
_In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO pDefines,
_In_opt_ ID3DInclude pInclude,
_In_opt_ LPCSTR  pEntrypoint,
_In_ LPCSTR  pTarget,
_In_ UINT  Flags1,
_In_ UINT  Flags2,
_Out_ ID3DBlob **  ppCode,
_Always_(_Outptr_opt_result_maybenull_) ID3DBlob **  ppErrorMsgs 
)
Here is the caller graph for this function:

◆ D3DCompile2()

HRESULT WINAPI D3DCompile2 ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_opt_ LPCSTR  pSourceName,
_In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO pDefines,
_In_opt_ ID3DInclude pInclude,
_In_ LPCSTR  pEntrypoint,
_In_ LPCSTR  pTarget,
_In_ UINT  Flags1,
_In_ UINT  Flags2,
_In_ UINT  SecondaryDataFlags,
_In_reads_bytes_opt_(SecondaryDataSize) LPCVOID  pSecondaryData,
_In_ SIZE_T  SecondaryDataSize,
_Out_ ID3DBlob **  ppCode,
_Always_(_Outptr_opt_result_maybenull_) ID3DBlob **  ppErrorMsgs 
)

◆ D3DCompileFromFile()

HRESULT WINAPI D3DCompileFromFile ( _In_ LPCWSTR  pFileName,
_In_reads_opt_(_Inexpressible_(pDefines->Name !=NULL)) CONST D3D_SHADER_MACRO pDefines,
_In_opt_ ID3DInclude pInclude,
_In_ LPCSTR  pEntrypoint,
_In_ LPCSTR  pTarget,
_In_ UINT  Flags1,
_In_ UINT  Flags2,
_Out_ ID3DBlob **  ppCode,
_Always_(_Outptr_opt_result_maybenull_) ID3DBlob **  ppErrorMsgs 
)
Here is the caller graph for this function:

◆ D3DCompressShaders()

HRESULT WINAPI D3DCompressShaders ( _In_ UINT  uNumShaders,
_In_reads_(uNumShaders) D3D_SHADER_DATA pShaderData,
_In_ UINT  uFlags,
_Out_ ID3DBlob **  ppCompressedData 
)

◆ D3DCreateBlob()

HRESULT WINAPI D3DCreateBlob ( _In_ SIZE_T  Size,
_Out_ ID3DBlob **  ppBlob 
)

◆ D3DCreateFunctionLinkingGraph()

HRESULT WINAPI D3DCreateFunctionLinkingGraph ( _In_ UINT  uFlags,
_Out_ interface ID3D11FunctionLinkingGraph **  ppFunctionLinkingGraph 
)

◆ D3DCreateLinker()

HRESULT WINAPI D3DCreateLinker ( __out interface ID3D11Linker **  ppLinker)

◆ D3DDecompressShaders()

HRESULT WINAPI D3DDecompressShaders ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ UINT  uNumShaders,
_In_ UINT  uStartIndex,
_In_reads_opt_(uNumShaders) UINT pIndices,
_In_ UINT  uFlags,
_Out_writes_(uNumShaders) ID3DBlob **  ppShaders,
_Out_opt_ UINT pTotalShaders 
)

◆ D3DDisassemble()

HRESULT WINAPI D3DDisassemble ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ UINT  Flags,
_In_opt_ LPCSTR  szComments,
_Out_ ID3DBlob **  ppDisassembly 
)

◆ D3DDisassemble10Effect()

HRESULT WINAPI D3DDisassemble10Effect ( _In_ interface ID3D10Effect pEffect,
_In_ UINT  Flags,
_Out_ ID3DBlob **  ppDisassembly 
)

◆ D3DDisassembleRegion()

HRESULT WINAPI D3DDisassembleRegion ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ UINT  Flags,
_In_opt_ LPCSTR  szComments,
_In_ SIZE_T  StartByteOffset,
_In_ SIZE_T  NumInsts,
_Out_opt_ SIZE_T *  pFinishByteOffset,
_Out_ ID3DBlob **  ppDisassembly 
)

◆ D3DGetBlobPart()

HRESULT WINAPI D3DGetBlobPart ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ D3D_BLOB_PART  Part,
_In_ UINT  Flags,
_Out_ ID3DBlob **  ppPart 
)

◆ D3DGetDebugInfo()

HRESULT WINAPI D3DGetDebugInfo ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_Out_ ID3DBlob **  ppDebugInfo 
)

◆ D3DGetInputAndOutputSignatureBlob()

HRESULT WINAPI D3DGetInputAndOutputSignatureBlob ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_Out_ ID3DBlob **  ppSignatureBlob 
)

◆ D3DGetInputSignatureBlob()

HRESULT WINAPI D3DGetInputSignatureBlob ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_Out_ ID3DBlob **  ppSignatureBlob 
)

◆ D3DGetOutputSignatureBlob()

HRESULT WINAPI D3DGetOutputSignatureBlob ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_Out_ ID3DBlob **  ppSignatureBlob 
)

◆ D3DGetTraceInstructionOffsets()

HRESULT WINAPI D3DGetTraceInstructionOffsets ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ UINT  Flags,
_In_ SIZE_T  StartInstIndex,
_In_ SIZE_T  NumInsts,
_Out_writes_to_opt_(NumInsts, min(NumInsts, *pTotalInsts)) SIZE_T *  pOffsets,
_Out_opt_ SIZE_T *  pTotalInsts 
)

◆ D3DLoadModule()

HRESULT WINAPI D3DLoadModule ( _In_ LPCVOID  pSrcData,
_In_ SIZE_T  cbSrcDataSize,
_Out_ interface ID3D11Module **  ppModule 
)

◆ D3DPreprocess()

HRESULT WINAPI D3DPreprocess ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_opt_ LPCSTR  pSourceName,
_In_opt_ CONST D3D_SHADER_MACRO pDefines,
_In_opt_ ID3DInclude pInclude,
_Out_ ID3DBlob **  ppCodeText,
_Always_(_Outptr_opt_result_maybenull_) ID3DBlob **  ppErrorMsgs 
)

◆ D3DReadFileToBlob()

HRESULT WINAPI D3DReadFileToBlob ( _In_ LPCWSTR  pFileName,
_Out_ ID3DBlob **  ppContents 
)

◆ D3DReflect()

HRESULT WINAPI D3DReflect ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ REFIID  pInterface,
_Out_ void **  ppReflector 
)

◆ D3DReflectLibrary()

HRESULT WINAPI D3DReflectLibrary ( __in_bcount(SrcDataSize) LPCVOID  pSrcData,
__in SIZE_T  SrcDataSize,
__in REFIID  riid,
__out LPVOID *  ppReflector 
)

◆ D3DSetBlobPart()

HRESULT WINAPI D3DSetBlobPart ( _In_reads_bytes_(SrcDataSize) LPCVOID  pSrcData,
_In_ SIZE_T  SrcDataSize,
_In_ D3D_BLOB_PART  Part,
_In_ UINT  Flags,
_In_reads_bytes_(PartSize) LPCVOID  pPart,
_In_ SIZE_T  PartSize,
_Out_ ID3DBlob **  ppNewShader 
)

◆ D3DStripShader()

HRESULT WINAPI D3DStripShader ( _In_reads_bytes_(BytecodeLength) LPCVOID  pShaderBytecode,
_In_ SIZE_T  BytecodeLength,
_In_ UINT  uStripFlags,
_Out_ ID3DBlob **  ppStrippedBlob 
)

◆ D3DWriteBlobToFile()

HRESULT WINAPI D3DWriteBlobToFile ( _In_ ID3DBlob pBlob,
_In_ LPCWSTR  pFileName,
_In_ BOOL  bOverwrite 
)