Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GorgonShaderBinding"/> class.
        /// </summary>
        /// <param name="graphics">The graphics.</param>
        internal GorgonShaderBinding(GorgonGraphics graphics)
        {
            IncludeFiles   = new GorgonShaderIncludeCollection();
            VertexShader   = new GorgonVertexShaderState(graphics);
            PixelShader    = new GorgonPixelShaderState(graphics);
            GeometryShader = new GorgonGeometryShaderState(graphics);

            if (graphics.VideoDevice.SupportedFeatureLevel > DeviceFeatureLevel.SM4_1)
            {
                ComputeShader = new GorgonComputeShaderState(graphics);
                HullShader    = new GorgonHullShaderState(graphics);
                DomainShader  = new GorgonDomainShaderState(graphics);
            }
            _graphics = graphics;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderUnorderedAccessViews"/> class.
 /// </summary>
 /// <param name="shader">Shader stage state.</param>
 internal ShaderUnorderedAccessViews(GorgonComputeShaderState shader)
 {
     _unorderedViews = new GorgonUnorderedAccessView[D3D.ComputeShaderStage.UnorderedAccessViewSlotCount];
     _shader         = shader;
 }