[core] Use label field of TextureDescriptor (#9714)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Sam authored and GitHub committed 2026-06-23 09:18:24 -04:00
1 parent 47cce259cb
commit ed57d2e82a
4 files changed
+14 -13

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
use alloc::{sync::Arc, vec::Vec};
use alloc::{string::String, sync::Arc, vec::Vec};
use core::ops::Range;
use crate::{
@@ -370,7 +370,7 @@ pub(crate) fn clear_texture<T: TextureTrackerSetSingle>(
}
fn clear_texture_via_buffer_copies(
texture_desc: &wgt::TextureDescriptor<(), Vec<wgt::TextureFormat>>,
texture_desc: &wgt::TextureDescriptor<String, Vec<wgt::TextureFormat>>,
alignments: &hal::Alignments,
zero_buffer: &dyn hal::DynBuffer, // Buffer of size device::ZERO_BUFFER_SIZE
range: TextureInitRange,
+2 -2
View File
@@ -451,7 +451,7 @@ pub(crate) fn validate_texture_copy_dst_format(
pub(crate) fn validate_texture_buffer_copy<T>(
texture_copy_view: &wgt::TexelCopyTextureInfo<T>,
aspect: hal::FormatAspects,
desc: &wgt::TextureDescriptor<(), Vec<wgt::TextureFormat>>,
desc: &wgt::TextureDescriptor<String, Vec<wgt::TextureFormat>>,
layout: &wgt::TexelCopyBufferLayout,
aligned: bool,
) -> Result<(), TransferError> {
@@ -502,7 +502,7 @@ pub(crate) fn validate_texture_buffer_copy<T>(
/// [vtcr]: https://gpuweb.github.io/gpuweb/#abstract-opdef-validating-texture-copy-range
pub(crate) fn validate_texture_copy_range<T>(
texture_copy_view: &wgt::TexelCopyTextureInfo<T>,
desc: &wgt::TextureDescriptor<(), Vec<wgt::TextureFormat>>,
desc: &wgt::TextureDescriptor<String, Vec<wgt::TextureFormat>>,
texture_side: CopySide,
copy_size: &Extent3d,
) -> Result<(hal::CopyExtent, u32), TransferError> {