Skip to content

Commit 6669060

Browse files
committed
Add dummy schd module just for the ShaderStage enum
1 parent 819501e commit 6669060

File tree

3 files changed

+55
-29
lines changed

3 files changed

+55
-29
lines changed

Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,5 @@ mod index;
139139

140140
#[cfg(feature = "logging")]
141141
mod logging;
142+
143+
mod schd;

src/schd.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
2+
// SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
use crate::{ffi_from_c_string, ffi_to_c_string, physis_Buffer};
5+
use std::ptr::{null, null_mut};
6+
use std::{mem, slice};
7+
use std::ffi::c_char;
8+
use physis::schd::ShaderStage;
9+
use physis::schd::Schd;
10+
11+
#[repr(C)]
12+
#[derive(Clone, Copy)]
13+
pub struct physis_SCHD {
14+
p_ptr: *mut Schd,
15+
shader_stage: ShaderStage
16+
}
17+
18+
#[no_mangle]
19+
pub extern "C" fn physis_parse_schd(buffer: physis_Buffer) -> physis_SCHD {
20+
physis_SCHD {
21+
p_ptr: null_mut(),
22+
shader_stage: ShaderStage::Vertex
23+
}
24+
}

0 commit comments

Comments
 (0)