Skip to content

Commit 12a9fd6

Browse files
committed
Doc comments and spec link
1 parent 6bb782a commit 12a9fd6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

wgpu-core/src/device/resource.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,10 @@ impl Device {
16621662
}
16631663
}
16641664

1665+
/// Validate a texture descriptor.
1666+
///
1667+
/// This applies the same validation as [`Self::create_texture`], without
1668+
/// actually creating a texture.
16651669
pub fn validate_texture_descriptor(
16661670
self: &Arc<Self>,
16671671
desc: &resource::TextureDescriptor,
@@ -1670,6 +1674,12 @@ impl Device {
16701674
Ok(())
16711675
}
16721676

1677+
/// Validate a texture descriptor.
1678+
///
1679+
/// Implements the [validating GPUTextureDescriptor] algorithm, with some
1680+
/// `wgpu` extensions.
1681+
///
1682+
/// [validating GPUTextureDescriptor]: https://www.w3.org/TR/webgpu/#abstract-opdef-validating-gputexturedescriptor
16731683
fn validate_texture_descriptor_inner(
16741684
self: &Arc<Self>,
16751685
desc: &resource::TextureDescriptor,

0 commit comments

Comments
 (0)