abstract struct Gloop::AttributeFormat

Overview

Base type for all attribute formats.

Describes the format of data in an vertex attribute.

Direct Known Subclasses

Defined in:

gloop/attribute_format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int32, relative_offset : UInt32) #

Creates the attribute format descriptor.


[View source]

Instance Method Detail

def relative_offset : UInt32 #

Relative offset of the attribute's data from the start of the buffer.


[View source]
def size : Int32 #

Number of components in the attribute.

This is normally 1, 2, 3, or 4.


[View source]