| 369 | } |
| 370 | |
| 371 | ID3D12RootSignaturePtr PTShaderLibrary::createRootSignature(const D3D12_ROOT_SIGNATURE_DESC& desc) |
| 372 | { |
| 373 | // Create a root signature from the specified description. |
| 374 | ID3D12RootSignaturePtr pSignature; |
| 375 | ID3DBlobPtr pSignatureBlob; |
| 376 | ID3DBlobPtr pErrorBlob; |
| 377 | checkHR(::D3D12SerializeRootSignature( |
| 378 | &desc, D3D_ROOT_SIGNATURE_VERSION_1, &pSignatureBlob, &pErrorBlob)); |
| 379 | checkHR(_pDXDevice->CreateRootSignature(0, pSignatureBlob->GetBufferPointer(), |
| 380 | pSignatureBlob->GetBufferSize(), IID_PPV_ARGS(&pSignature))); |
| 381 | |
| 382 | return pSignature; |
| 383 | } |
| 384 | |
| 385 | void PTShaderLibrary::initRootSignatures(int globalTextureCount, int globalSamplerCount) |
| 386 | { |
nothing calls this directly
no test coverage detected