File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments