refactor(wayland): move shaders to separate module
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
pub mod compositor;
|
pub mod compositor;
|
||||||
|
pub mod shaders;
|
||||||
pub mod surface;
|
pub mod surface;
|
||||||
pub mod xdg_decoration;
|
pub mod xdg_decoration;
|
||||||
mod xdg_shell;
|
pub mod xdg_shell;
|
||||||
use std::{ffi::c_void, sync::Arc};
|
use std::{ffi::c_void, sync::Arc};
|
||||||
|
|
||||||
use anyhow::{ensure, Result};
|
use anyhow::{ensure, Result};
|
||||||
|
|||||||
4
src/wayland/shaders/mod.rs
Normal file
4
src/wayland/shaders/mod.rs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
pub const GAMMA_SHADER_BYTES: &[u8] = include_bytes!("shader_unlit_gamma.sks");
|
||||||
|
pub const SIMULA_SHADER_BYTES: &[u8] = include_bytes!("shader_unlit_simula.sks");
|
||||||
@@ -11,8 +11,7 @@ use stereokit::{
|
|||||||
StereoKit,
|
StereoKit,
|
||||||
};
|
};
|
||||||
|
|
||||||
// const GAMMA_SHADER_BYTES: &[u8] = include_bytes!("shader_unlit_gamma.sks");
|
use super::shaders::SIMULA_SHADER_BYTES;
|
||||||
const SIMULA_SHADER_BYTES: &[u8] = include_bytes!("shader_unlit_simula.sks");
|
|
||||||
|
|
||||||
pub struct CoreSurface {
|
pub struct CoreSurface {
|
||||||
pub(crate) wl_tex: RefCell<Option<SendWrapper<Gles2Texture>>>,
|
pub(crate) wl_tex: RefCell<Option<SendWrapper<Gles2Texture>>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user