struct Eagle::GPU::VertexAttrib

Overview

One attribute in an interleaved vertex buffer.

Defined in:

eagle/gpu/device.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, components : Int32, type : Eagle::GPU::AttribType, offset : Int32) #

Creates an attribute description.


Instance Method Detail

def byte_size : Int32 #

Size of the attribute in bytes.


def components : Int32 #

Number of values, such as 3 for a position.


def name : String #

Attribute name as used in the shader.


def offset : Int32 #

Byte offset within a vertex.


def type : AttribType #

Data type of each value.