mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 13:32:59 +01:00
Destroyed Shaders (markdown)
17
Shaders.md
17
Shaders.md
@@ -1,17 +0,0 @@
|
||||
## Shader Creation
|
||||
```
|
||||
// read from somewhere
|
||||
bgfx::Memory shaderData;
|
||||
shaderData.data = ...;
|
||||
shaderData.size = ...;
|
||||
|
||||
bgfx::ShaderHandle handle = bgfx::createShader( &shaderData );
|
||||
```
|
||||
|
||||
## Program Creation
|
||||
```
|
||||
bgfx::ShaderHandle vertexShader = ...;
|
||||
bgfx::ShaderHandle fragmentShader = ...;
|
||||
|
||||
bgfx::ProgramHandle program = bgfx::createProgram(vsh, fsh, false);
|
||||
```
|
||||
Reference in New Issue
Block a user