Skip to main content

Module validation

Module validation 

Source

ModulesΒ§

shader_io_deductions

StructsΒ§

EntryPoint πŸ”’
The shader interface of an entry point in a naga::Module.
EntryPointKey πŸ”’
EntryPointKeyRef πŸ”’
EntryPointMeshInfo πŸ”’
Interface
A summary of the shader interfaces of the entry points in a naga::Module.
InterfaceVar
NumericType
PassthroughInterface
Resource πŸ”’
StageIo
Summary of one shader stage’s outputs, presented as inputs to the next stage.
WorkgroupSizeCheck πŸ”’
A helper type for avoiding argument order mistakes when calling Self::check_and_compute_total_invocations.

EnumsΒ§

BindingError
BindingLayoutSource
BindingTypeName
BuiltIn πŸ”’
FilteringError
InputError
InvalidWorkgroupSizeError
NumericDimension πŸ”’
ResourceType πŸ”’
ShaderMetaData
ShaderStageForValidation
StageError
Errors produced when validating a programmable stage of a pipeline.
Varying πŸ”’
An inter-stage input or output value.

FunctionsΒ§

check_color_attachment_compatibility
Return true if the fragment format is covered by the provided output.
check_color_attachment_count
map_storage_format_from_naga
Map a naga::StorageFormat to the corresponding wgt::TextureFormat.
map_storage_format_to_naga
Map a wgt::TextureFormat to the corresponding naga::StorageFormat, if any.
validate_color_attachment_bytes_per_sample
Validate a list of color attachment formats against maxColorAttachmentBytesPerSample.