备注 对于使用 Direct3D 10 进行编程,此 API 具有一个类型别名,该别名开始 D3D10_ 而不是 D3D_。 这些 Direct3D 10 类型别名在 d3d10.h、d3d10misc.h和d3d10shader.h中定义。语法C++ 复制 typedef enum _D3D_SHADER_INPUT_TYPE { D3D_SIT_CBUFFER = 0, D3D_SIT_TBUFFER, D3D_SIT_TEXTURE, D3D_...
D3D_BLOB_PART enumeration D3D_SHADER_DATA structure D3DCompile function D3DCompile2 function D3DCompileFromFile function D3DCOMPILER_STRIP_FLAGS enumeration D3DCompressShaders function D3DCreateBlob function D3DCreateFunctionLinkingGraph function D3DCreateLinker function D3DDecompressShaders function D3DDisassemble...
HRESULTD3DPreprocess( [in] LPCVOID pSrcData, [in] SIZE_T SrcDataSize, [in, optional] LPCSTR pSourceName, [in, optional]constD3D_SHADER_MACRO *pDefines, [in, optional] ID3DInclude *pInclude, [out] ID3DBlob **ppCodeText, [out, optional] ID3DBlob **ppErrorMsgs ); ...
HRESULTD3DPreprocess( [in] LPCVOID pSrcData, [in] SIZE_T SrcDataSize, [in, optional] LPCSTR pSourceName, [in, optional]constD3D_SHADER_MACRO *pDefines, [in, optional] ID3DInclude *pInclude, [out] ID3DBlob **ppCodeText, [out, optional] ID3DBlob **ppErrorMsgs ); ...
D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_BLOB_NOT_FOUND = 696, D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_DESERIALIZE_FAILED = 697, D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_INVALID_CONFIGURATION = 698, D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_SUPPORTED_ON_DEVICE = 699, D3D12_MESSAGE_ID_CREAT...
D3D_SHADER_VARIABLE_FLAGS-Enumeration D3D_SHADER_VARIABLE_TYPE-Enumeration D3D_SRV_DIMENSION-Enumeration D3D_TESSELLATOR_DOMAIN-Enumeration D3D_TESSELLATOR_OUTPUT_PRIMITIVE-Enumeration D3D_TESSELLATOR_PARTITIONING-Enumeration ID3D10Blob-Schnittstelle ID3DDestructionNotifier-Schnittstelle ID3DInclude...
ID3DBlob* blob =nullptr; ID3DBlob* errorBlob =nullptr; UINT flags = D3DCOMPILE_ENABLE_STRICTNESS;#ifdefined( DEBUG ) || defined( _DEBUG )flags |= D3DCOMPILE_DEBUG;#endifShaderMacros* macros =0;map<string, ShaderMacros*>::iterator it = m_ShaderMacros.find(macroName);if(it != m_Shad...
tests/D3D12 D3D12_Mesh_Shader.py 34 changes: 34 additions & 0 deletions 34 util/test/demos/d3d12/d3d12_helpers.cpp Original file line numberDiff line numberDiff line change @@ -1087,6 +1087,36 @@ D3D12PSOCreator &D3D12PSOCreator::VS(ID3DBlobPtr blob) ...
该像素着色器不会使用vs_5_0作为配置文件进行编译。检查你的HRESULT!
*blob = shaderBlob;returnhr; } 开发者ID:torbjorn-sorman,项目名称:TQDT33,代码行数:38,代码来源:main_.cpp 示例4: insertHullShader ▲点赞 2▼ intTechniqueHLSL::insertHullShader(std::stringshaderDir,std::stringshaderName) {if(shaderDir.empty() || shaderName.empty() ) ...