mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
make remaining Adapter
methods public
This commit is contained in:
parent
d1c95d2bfd
commit
4d55c6917e
@ -257,7 +257,7 @@ pub struct Adapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Adapter {
|
impl Adapter {
|
||||||
fn new(mut raw: hal::DynExposedAdapter) -> Self {
|
pub fn new(mut raw: hal::DynExposedAdapter) -> Self {
|
||||||
// WebGPU requires this offset alignment as lower bound on all adapters.
|
// WebGPU requires this offset alignment as lower bound on all adapters.
|
||||||
const MIN_BUFFER_OFFSET_ALIGNMENT_LOWER_BOUND: u32 = 32;
|
const MIN_BUFFER_OFFSET_ALIGNMENT_LOWER_BOUND: u32 = 32;
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ impl Adapter {
|
|||||||
unsafe { self.raw.adapter.get_presentation_timestamp() }
|
unsafe { self.raw.adapter.get_presentation_timestamp() }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn get_texture_format_features(
|
pub fn get_texture_format_features(
|
||||||
&self,
|
&self,
|
||||||
format: wgt::TextureFormat,
|
format: wgt::TextureFormat,
|
||||||
) -> wgt::TextureFormatFeatures {
|
) -> wgt::TextureFormatFeatures {
|
||||||
@ -399,8 +399,7 @@ impl Adapter {
|
|||||||
Ok((device, queue))
|
Ok((device, queue))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::type_complexity)]
|
pub fn create_device_and_queue(
|
||||||
fn create_device_and_queue(
|
|
||||||
self: &Arc<Self>,
|
self: &Arc<Self>,
|
||||||
desc: &DeviceDescriptor,
|
desc: &DeviceDescriptor,
|
||||||
instance_flags: wgt::InstanceFlags,
|
instance_flags: wgt::InstanceFlags,
|
||||||
|
Loading…
Reference in New Issue
Block a user