struct CrShader::GLSLLayoutPacker::FieldSlot

Defined in:

crshader/transpiler/glsl/layout_packer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, crystal_type : String, glsl_type : String, byte_offset : Int32, byte_size : Int32, alignment : Int32, is_array : Bool = false, array_len : Int32 = 1) #

Instance Method Detail

def alignment : Int32 #

def array_len : Int32 #

def byte_offset : Int32 #

def byte_size : Int32 #

def clone #

def copy_with(name _name = @name, crystal_type _crystal_type = @crystal_type, glsl_type _glsl_type = @glsl_type, byte_offset _byte_offset = @byte_offset, byte_size _byte_size = @byte_size, alignment _alignment = @alignment, is_array _is_array = @is_array, array_len _array_len = @array_len) #

def crystal_type : String #

def glsl_type : String #

def is_array : Bool #

def name : String #