Exemplo n.º 1
0
        private int ResolveMaximumArguments()
        {
            if (Type == ProgramType.Procedure || Type == ProgramType.PackageProcedure)
            {
                return(RootParameters.Count());
            }

            return(Parameters.Count > 1 && _metadataMaximumArguments != 0 && Parameters[0].Direction == ParameterDirection.ReturnValue
                                        ? RootParameters.Count() - 1
                                        : (_metadataMaximumArguments ?? 0));
        }
        public virtual void Clear()
        {
            ConstantBufferViewRegisterCount  = 0;
            ShaderResourceViewRegisterCount  = 0;
            UnorderedAccessViewRegisterCount = 0;
            SamplerRegisterCount             = 0;

            RootParameters.Clear();
            ConstantBufferViews.Clear();
            ShaderResourceViews.Clear();
            UnorderedAccessViews.Clear();
            Samplers.Clear();
        }