Type representation of the static program introspection,
inferred from ProgramProps.introspection
.
List of UBOs external to this program.
Inferred from ProgramProps.introspection
and ProgramProps.ubos
.
Individual member views of UBOs specific to this program.
Texture slots used by this program.
Instructs the program to use the given buffer
as the source
for the uniform block with the given name
.
Name of the uniform block.
Buffer to use as the data source.
true
if the operation was successful, false
otherwise.
Calls upload()
on all uniform buffers.
Calls uploadSync()
on all uniform buffers.
This is only usable after all buffers have been initialized.
Returns the underlying WebGLProgram
, once ready.
If the program was not compiled before calling getProgram()
,
it will be compiled implicitly. Ideally, you should await compile()
first.
The underlying WebGLProgram
Compiles the program.
This is fairly expensive, since it compiles both shaders, links the program and sets up all uniform buffers and textures.
Sets the program and all UBOs and textures up for usage.
true
if the program has been successfully set up, false
if something went wrong.
Generated using TypeDoc
Representation of a
WebGLProgram
, its UBOs and textures.Using
@gdgt/hlsl-loader
you can create a program like this: