コード例 #1
0
        static void BindResources(MyRenderContext RC, bool dualSourceBlending)
        {
            if (dualSourceBlending)
            {
                RC.BindGBufferForWrite(MyGBuffer.Main, MyGbufferSlot.GBuffer0, DepthStencilAccess.DepthReadOnly);
            }
            else
            {
                RC.BindGBufferForWrite(MyGBuffer.Main, DepthStencilAccess.DepthReadOnly);
            }

            RC.BindSRV(0, MyGBuffer.Main.DepthStencil.Depth);
            RC.DeviceContext.PixelShader.SetShaderResource(1, MyRender11.m_gbuffer1Copy.SRV);
        }
コード例 #2
0
 static void BindResources(MyRenderContext RC)
 {
     RC.BindGBufferForWrite(MyGBuffer.Main, DepthStencilAccess.ReadOnly);
     RC.BindSRVs(0, MyGBuffer.Main.DepthStencil.Depth, MyRender11.Gbuffer1Copy);
 }
コード例 #3
0
        static void BindResources(MyRenderContext RC, bool dualSourceBlending)
        {
            if (dualSourceBlending)
                RC.BindGBufferForWrite(MyGBuffer.Main, MyGbufferSlot.GBuffer0, DepthStencilAccess.DepthReadOnly);
            else
                RC.BindGBufferForWrite(MyGBuffer.Main, DepthStencilAccess.DepthReadOnly);

            RC.BindSRV(0, MyGBuffer.Main.DepthStencil.Depth);
            RC.DeviceContext.PixelShader.SetShaderResource(1, MyRender11.m_gbuffer1Copy.SRV);
        }