diff options
| author | Fenrir <[email protected]> | 2016-05-02 21:10:45 -0700 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2016-05-02 22:03:42 -0700 |
| commit | c314c0098ec01aa5f806ce4fd31410e74ad686d9 (patch) | |
| tree | 24773c04a6444792e7244f7b3c3c6a27f3093bff /ctru-sys/src/gpu/shader_program.rs | |
| parent | Deleted old files (diff) | |
| download | archived-ctru-rs-c314c0098ec01aa5f806ce4fd31410e74ad686d9.tar.xz archived-ctru-rs-c314c0098ec01aa5f806ce4fd31410e74ad686d9.zip | |
Added new bindings
Diffstat (limited to 'ctru-sys/src/gpu/shader_program.rs')
| -rw-r--r-- | ctru-sys/src/gpu/shader_program.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ctru-sys/src/gpu/shader_program.rs b/ctru-sys/src/gpu/shader_program.rs deleted file mode 100644 index bf373e1..0000000 --- a/ctru-sys/src/gpu/shader_program.rs +++ /dev/null @@ -1,42 +0,0 @@ -use super::shbin::*; - -#[repr(C)] -#[derive(Copy)] -pub struct float24Uniform_s { - id: u32, - data: [u32; 3usize] -} - -#[repr(C)] -#[derive(Copy)] -pub struct shaderInstance_s { - pub dvle: *mut DVLE_s; - pub boolUniforms: u16, - pub intUniforms: [u32; 4usize], - pub float24Uniforms: *mut float24Uniform_s, - pub numFloat24Uniforms: u8, -} - -#[repr(C)] -#[derive(Copy)] -pub struct shaderProgram_s { - pub vertexShader: *mut shaderInstance_s, - pub geometryShader: *mut shaderInstance_s, - pub geometryShaderInputStride: u8, -} - -use ctru::Result; - - -extern "C" { - pub fn shaderInstanceInit(si: *mut shaderInstance_s, dvle: *mut DVLE_s) -> Result; - pub fn shaderInstanceFree(si: *mut shaderInstance_s) -> Result; - pub fn shaderInstanceSetBool(si: *mut shaderInstance_s, id: ::libc::c_int, value: u8) -> Result; - pub fn shaderInstanceGetBool(si: *mut shaderInstance_s, id: ::libc::c_int, value: *mut u8) -> Result; - pub fn shaderInstanceGetUniformLocation(si: *mut shaderInstance_s, name: *const ::libc::c_char) -> Result; - pub fn shaderProgramInit(sp: *mut shaderProgram_s) -> Result; - pub fn shaderProgramFree(sp: *mut shaderProgram_s) -> Result; - pub fn shaderProgramSetVsh(sp: *mut shaderProgram_s, dvle: *mut DVLE_s) -> Result; - pub fn shaderProgramSetGsh(sp: *mut shaderProgram_s, dvle: *mut DVLE_s, stride: _u8) -> Result; - pub fn shaderProgramUse(sp: *mut shaderProgram_s) -> Result; -} |