コード例 #1
0
        private void MapBufferObjects(GraphicsContext ctx)
        {
            foreach (KeyValuePair <uint, ArrayAttachment> pair in _AttachedArrays)
            {
                ArrayAttachment arrayAttachment = pair.Value;
                ArrayBufferObjectBase.IArraySection arraySection = arrayAttachment.ArrayBuffer.GetArraySection(arrayAttachment.ArraySectionIndex);

                Gl.BindBufferRange(Gl.TRANSFORM_FEEDBACK_BUFFER, pair.Key, arrayAttachment.ArrayBuffer.ObjectName, arraySection.Offset, arrayAttachment.ArrayBuffer.BufferSize - (uint)arraySection.Offset.ToInt32());
            }
        }
コード例 #2
0
        private void MapBufferObjects(GraphicsContext ctx)
        {
            foreach (KeyValuePair <uint, ArrayAttachment> pair in _AttachedArrays)
            {
                ArrayAttachment arrayAttachment            = pair.Value;
                ArrayBufferBase.IArraySection arraySection = arrayAttachment.ArrayBuffer.GetArraySection(arrayAttachment.ArraySectionIndex);

                Gl.BindBufferRange(BufferTarget.TransformFeedbackBuffer, pair.Key, arrayAttachment.ArrayBuffer.ObjectName, arraySection.Offset, arrayAttachment.ArrayBuffer.GpuBufferSize - (uint)arraySection.Offset.ToInt32());
            }
        }