natiny_shader_load
NatinyShader natiny_shader_load(NatinyResource nsl_source);
Compiles an NSL resource containing vertex and fragment stages for the active graphics backend.
Parameters
| Name | Type | Description |
|---|---|---|
nsl_source |
NatinyResource |
Resource holding the .nsl source |
Returns
| Type | Description |
|---|---|
NatinyShader |
Shader handle, or 0 when the source does not compile |
Example
NatinyShader shader = natiny_shader_load(source);