mirror of https://github.com/wayvr-org/wayvr.git
box CompositionLayerColorScaleBiasKHR
This commit is contained in:
parent
ab3f873a38
commit
f21776b123
|
|
@ -31,7 +31,7 @@ pub(super) struct Skybox {
|
||||||
view: Arc<ImageView>,
|
view: Arc<ImageView>,
|
||||||
sky: Option<WlxSwapchain>,
|
sky: Option<WlxSwapchain>,
|
||||||
grid: Option<WlxSwapchain>,
|
grid: Option<WlxSwapchain>,
|
||||||
grid_color_scale_bias_khr: Option<xr::sys::CompositionLayerColorScaleBiasKHR>,
|
grid_color_scale_bias_khr: Option<Box<xr::sys::CompositionLayerColorScaleBiasKHR>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Skybox {
|
impl Skybox {
|
||||||
|
|
@ -82,16 +82,18 @@ impl Skybox {
|
||||||
.instance
|
.instance
|
||||||
.exts()
|
.exts()
|
||||||
.khr_composition_layer_color_scale_bias
|
.khr_composition_layer_color_scale_bias
|
||||||
.map(|_| xr::sys::CompositionLayerColorScaleBiasKHR {
|
.map(|_| {
|
||||||
ty: xr::StructureType::COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR,
|
Box::new(xr::sys::CompositionLayerColorScaleBiasKHR {
|
||||||
next: std::ptr::null(),
|
ty: xr::StructureType::COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR,
|
||||||
color_bias: Default::default(),
|
next: std::ptr::null(),
|
||||||
color_scale: xr::Color4f {
|
color_bias: Default::default(),
|
||||||
r: 1.0,
|
color_scale: xr::Color4f {
|
||||||
g: 1.0,
|
r: 1.0,
|
||||||
b: 1.0,
|
g: 1.0,
|
||||||
a: 1.0,
|
b: 1.0,
|
||||||
},
|
a: 1.0,
|
||||||
|
},
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue