Пример #1
0
        /// <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);
        }
Пример #2
0
 internal MyBindableResource Get(MyGbufferSlot slot)
 {
     return((MyBindableResource)m_resources[(int)slot]);
 }
Пример #3
0
 internal MyBindableResource Get(MyGbufferSlot slot)
 {
     return (MyBindableResource)m_resources[(int)slot];
 }