コード例 #1
0
        public virtual void Clear()
        {
            ConstantBufferViewRegisterCount  = 0;
            ShaderResourceViewRegisterCount  = 0;
            UnorderedAccessViewRegisterCount = 0;
            SamplerRegisterCount             = 0;

            RootParameters.Clear();
            ConstantBufferViews.Clear();
            ShaderResourceViews.Clear();
            UnorderedAccessViews.Clear();
            Samplers.Clear();
        }
コード例 #2
0
        public MaterialPass?PopPass()
        {
            PassIndex++;

            MaterialPass?materialPass = MaterialPass;

            MaterialPass = null;

            ConstantBufferViews.Clear();
            ShaderResourceViews.Clear();
            UnorderedAccessViews.Clear();

            return(materialPass);
        }