8#ifndef GrD3DRootSignature_DEFINED
9#define GrD3DRootSignature_DEFINED
21 kConstantBufferView = 0,
22 kShaderViewDescriptorTable = 1,
23 kSamplerDescriptorTable = 2,
25 kLast = kSamplerDescriptorTable
29 bool isCompatible(
int numTextureSamplers,
int numUAVs)
const;
33#ifdef SK_TRACE_MANAGED_RESOURCES
36 void dumpInfo()
const override {
37 SkDebugf(
"GrD3DRootSignature: %p, numTextures: %d (%d refs)\n",
38 fRootSignature.
get(), fNumTextureSamplers, this->getRefCnt());
47 void freeGPUData()
const override {}
50 int fNumTextureSamplers;
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
bool isCompatible(int numTextureSamplers, int numUAVs) const
static sk_sp< GrD3DRootSignature > Make(GrD3DGpu *gpu, int numTextureSamplers, int numUAVs)
ID3D12RootSignature * rootSignature() const
static constexpr unsigned int kParamIndexCount