update: stardust-xr core
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
)?)),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user