Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::GpuError Struct Reference

#include <gpu_pass.hpp>

Public Types

enum class  Kind : std::uint8_t {
  unavailable , invalid_argument , shader_compilation , validation ,
  out_of_memory , internal , device_lost , timeout
}

Public Member Functions

std::string describe () const
 kind: message, followed by one formatted diagnostic per line.

Public Attributes

Kind kind = Kind::internal
std::string message
std::vector< WgslDiagnostic > diagnostics
 Compiler messages for shader_compilation (and any warnings).

Member Enumeration Documentation

◆ Kind

enum class pulp::render::GpuError::Kind : std::uint8_t
strong
Enumerator
unavailable 

No device, or this build has no Dawn.

invalid_argument 

A descriptor or call the API rejects before reaching Dawn.

shader_compilation 

WGSL failed to compile; diagnostics holds the messages.

validation 

Dawn validation rejected the call.

out_of_memory 
internal 
device_lost 
timeout 

Member Function Documentation

◆ describe()

std::string pulp::render::GpuError::describe ( ) const

kind: message, followed by one formatted diagnostic per line.

Member Data Documentation

◆ diagnostics

std::vector<WgslDiagnostic> pulp::render::GpuError::diagnostics

Compiler messages for shader_compilation (and any warnings).

◆ kind

Kind pulp::render::GpuError::kind = Kind::internal

◆ message

std::string pulp::render::GpuError::message

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/render/include/pulp/render/gpu_pass.hpp