ShaderBlock:send

Updates a variable in the ShaderBlock.

ShaderBlock:send()

Arguments

None

Returns

Nothing


bytes = ShaderBlock:send(blob)

Arguments

NameTypeDescription
blobBlobA Blob to replace the entire block with.

Returns

NameTypeDescription
bytesnumberHow many bytes were copied to the block.

Notes

For scalar or vector types, use tables of numbers or vec3s for each vector.

For matrix types, use tables of numbers or mat4 objects.

Blobs can also be used to pass arbitrary binary data to individual variables.

See also