MCPcopy Create free account
hub / github.com/Autodesk/Aurora / createRootSignature

Method createRootSignature

Libraries/Aurora/Source/DirectX/PTShaderLibrary.cpp:371–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371ID3D12RootSignaturePtr 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
385void PTShaderLibrary::initRootSignatures(int globalTextureCount, int globalSamplerCount)
386{

Callers

nothing calls this directly

Calls 3

checkHRFunction · 0.85
GetBufferPointerMethod · 0.80
GetBufferSizeMethod · 0.80

Tested by

no test coverage detected