Ejemplo n.º 1
0
        // Extended GPU Commands
        void Draw(VertexBufferD3d11 vb,
                  IndexBufferD3d11 ib, RenderParamsListArray renderParamsListArry)
        {
            // apply vertex and index buffers


            // apply gpu program parameters
            m_CurrEffect.Apply(renderParamsListArry);

            if (ib != null)
            {
                // draw with index buffer
            }
            else
            {
                uint vertexCount         = 0;
                int  vertexStartLocation = 0;
                m_D3dDevice.ImmediateContext.Draw((int)vertexCount, vertexStartLocation);
            }
        }
Ejemplo n.º 2
0
        // Extended GPU Commands
        void Draw(VertexBufferD3d11 vb, 
            IndexBufferD3d11 ib, RenderParamsListArray renderParamsListArry)
        {
            // apply vertex and index buffers

            // apply gpu program parameters
            m_CurrEffect.Apply(renderParamsListArry);

            if (ib != null)
            {
                // draw with index buffer
            }
            else
            {
                uint vertexCount = 0;
                int vertexStartLocation = 0;
                m_D3dDevice.ImmediateContext.Draw((int)vertexCount, vertexStartLocation);
            }
        }