update: stardust-xr core

This commit is contained in:
Nova
2025-09-23 14:08:52 -07:00
parent 25b0760913
commit 96e910c450
10 changed files with 156 additions and 176 deletions

View File

@@ -6,7 +6,7 @@ use bevy::{
};
use bevy_dmabuf::{
dmatex::{Dmatex, DmatexPlane, Resolution},
import::{DropCallback, ImportedDmatexs, ImportedTexture, import_texture},
import::{DmatexUsage, DropCallback, ImportedDmatexs, ImportedTexture, import_texture},
};
use drm_fourcc::DrmFourcc;
use mint::Vector2;
@@ -176,8 +176,13 @@ impl ShmBufferBacking {
flip_y: false,
srgb: true,
};
let imported_dmatex =
import_texture(RENDER_DEVICE.wait(), dmatex, DropCallback(None)).unwrap();
let imported_dmatex = import_texture(
RENDER_DEVICE.wait(),
dmatex,
DropCallback(None),
DmatexUsage::Sampling,
)
.unwrap();
Self {
pool,
offset,

View File

@@ -6,7 +6,9 @@ use bevy::{
};
use bevy_dmabuf::{
dmatex::{Dmatex, Resolution},
import::{DropCallback, ImportError, ImportedDmatexs, ImportedTexture, import_texture},
import::{
DmatexUsage, DropCallback, ImportError, ImportedDmatexs, ImportedTexture, import_texture,
},
};
use drm_fourcc::DrmFourcc;
use mint::Vector2;
@@ -45,6 +47,7 @@ impl DmabufBacking {
dev,
dmatex,
DropCallback(None),
DmatexUsage::Sampling,
)?)),
})
}