mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
[core] Use label field of TextureDescriptor (#9714)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
4 files changed
+14
-13
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user