/// <summary> /// Bind the provided slot to SV_Target0. Useful for dual-source blending /// </summary> internal void BindGBufferForWrite(MyGBuffer gbuffer, MyGbufferSlot slot, DepthStencilAccess depthStencilFlags = DepthStencilAccess.ReadWrite) { m_tmpBinds1[0] = gbuffer.Get(slot); BindDepthRTInternal(gbuffer.Get(MyGbufferSlot.DepthStencil), depthStencilFlags, m_tmpBinds1); Array.Clear(m_tmpBinds1, 0, m_tmpBinds1.Length); }
internal MyBindableResource Get(MyGbufferSlot slot) { return((MyBindableResource)m_resources[(int)slot]); }
internal MyBindableResource Get(MyGbufferSlot slot) { return (MyBindableResource)m_resources[(int)slot]; }