struct
Eagle::GPU::VertexAttrib
- Eagle::GPU::VertexAttrib
- Struct
- Value
- Object
Overview
One attribute in an interleaved vertex buffer.
Defined in:
eagle/gpu/device.crConstructors
-
.new(name : String, components : Int32, type : Eagle::GPU::AttribType, offset : Int32)
Creates an attribute description.
Instance Method Summary
-
#byte_size : Int32
Size of the attribute in bytes.
-
#components : Int32
Number of values, such as 3 for a position.
-
#name : String
Attribute name as used in the shader.
-
#offset : Int32
Byte offset within a vertex.
-
#type : AttribType
Data type of each value.
Constructor Detail
def self.new(name : String, components : Int32, type : Eagle::GPU::AttribType, offset : Int32)
#
Creates an attribute description.