public virtual void Clear() { ConstantBufferViewRegisterCount = 0; ShaderResourceViewRegisterCount = 0; UnorderedAccessViewRegisterCount = 0; SamplerRegisterCount = 0; RootParameters.Clear(); ConstantBufferViews.Clear(); ShaderResourceViews.Clear(); UnorderedAccessViews.Clear(); Samplers.Clear(); }
public MaterialPass?PopPass() { PassIndex++; MaterialPass?materialPass = MaterialPass; MaterialPass = null; ConstantBufferViews.Clear(); ShaderResourceViews.Clear(); UnorderedAccessViews.Clear(); return(materialPass); }