struct Gloop::Program::Binary

Overview

Representation of a compiled and linked shader program.

Defined in:

gloop/program/binary.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bytes : Bytes, format : UInt32) #

Creates the program binary.


[View source]

Instance Method Detail

def bytes : Bytes #

Raw data of the compiled and linked program.


[View source]
def format : UInt32 #

Token indicating the format of the data.


[View source]
def size #

Number of bytes used to store the binary.


[View source]
def to_unsafe #

Retrieves a pointer to the byte data.


[View source]