mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
remove stale profiling scopes
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
1 parent
43b7ff9220
commit
3c51fc05b5
2 files changed
+1
-6
No files matched your search
@@ -269,8 +269,6 @@ impl Global {
|
||||
initial_state: wgt::TextureUses,
|
||||
id_in: Option<id::TextureId>,
|
||||
) -> (id::TextureId, Option<resource::CreateTextureError>) {
|
||||
profiling::scope!("Device::create_texture_from_hal");
|
||||
|
||||
let hub = &self.hub;
|
||||
|
||||
let fid = hub.textures.prepare(id_in);
|
||||
@@ -297,8 +295,6 @@ impl Global {
|
||||
desc: &resource::BufferDescriptor,
|
||||
id_in: Option<id::BufferId>,
|
||||
) -> (id::BufferId, Option<CreateBufferError>) {
|
||||
profiling::scope!("Device::create_buffer");
|
||||
|
||||
let hub = &self.hub;
|
||||
let fid = hub.buffers.prepare(id_in);
|
||||
|
||||
@@ -669,8 +665,6 @@ impl Global {
|
||||
desc: &wgt::CommandEncoderDescriptor<Label>,
|
||||
id_in: Option<id::CommandEncoderId>,
|
||||
) -> (id::CommandEncoderId, Option<DeviceError>) {
|
||||
profiling::scope!("Device::create_command_encoder");
|
||||
|
||||
let hub = &self.hub;
|
||||
let fid = hub.command_encoders.prepare(id_in);
|
||||
|
||||
|
||||
@@ -1478,6 +1478,7 @@ impl Device {
|
||||
hal_buffer: Box<dyn hal::DynBuffer>,
|
||||
desc: &resource::BufferDescriptor,
|
||||
) -> (Arc<Buffer>, Option<resource::CreateBufferError>) {
|
||||
profiling::scope!("Device::create_buffer");
|
||||
let (buffer, error) = match unsafe { self.create_buffer_from_hal_inner(hal_buffer, desc) } {
|
||||
Ok(buffer) => (buffer, None),
|
||||
Err(e) => (Buffer::invalid(Arc::clone(self), desc), Some(e)),
|
||||
|
||||
Reference in new issue
Block a user