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
PipelineResources
Resource usage accumulated across all of a pipelineโ€™s stages.
RayTracingPayloadMember
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 ๐Ÿ”’
RayTracingPayloadType
An enum containing the types allowed in a ray tracing payload, to be stored in the interface so various shaders can be checked that they all have the same types. Roughly equal to nagaโ€™s type inner, but without names,
ResourceType ๐Ÿ”’
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.