#include "third_party/blink/renderer/modules/webgpu/dawn_enum_conversions.h"
#include "base/notreached.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_address_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_blend_factor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_blend_operation.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_buffer_binding_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_compare_function.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_cull_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_error_filter.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_feature_name.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_filter_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_front_face.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_index_format.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_load_op.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_mipmap_filter_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_primitive_topology.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_query_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_sampler_binding_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_stencil_operation.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_storage_texture_access.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_store_op.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_texture_aspect.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_texture_dimension.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_texture_format.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_texture_sample_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_texture_view_dimension.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_vertex_format.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_vertex_step_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_wgsl_feature_name.h"
#include "third_party/blink/renderer/platform/graphics/graphics_types.h"
namespace blink {
wgpu::BufferBindingType AsDawnEnum(const V8GPUBufferBindingType& webgpu_enum) { … }
wgpu::SamplerBindingType AsDawnEnum(
const V8GPUSamplerBindingType& webgpu_enum) { … }
wgpu::TextureSampleType AsDawnEnum(const V8GPUTextureSampleType& webgpu_enum) { … }
wgpu::StorageTextureAccess AsDawnEnum(
const V8GPUStorageTextureAccess& webgpu_enum) { … }
wgpu::CompareFunction AsDawnEnum(const V8GPUCompareFunction& webgpu_enum) { … }
wgpu::QueryType AsDawnEnum(const V8GPUQueryType& webgpu_enum) { … }
const char* FromDawnEnum(wgpu::QueryType dawn_enum) { … }
wgpu::TextureFormat AsDawnEnum(const V8GPUTextureFormat& webgpu_enum) { … }
const char* FromDawnEnum(wgpu::TextureFormat dawn_enum) { … }
wgpu::TextureDimension AsDawnEnum(const V8GPUTextureDimension& webgpu_enum) { … }
const char* FromDawnEnum(wgpu::TextureDimension dawn_enum) { … }
wgpu::TextureViewDimension AsDawnEnum(
const V8GPUTextureViewDimension& webgpu_enum) { … }
wgpu::StencilOperation AsDawnEnum(const V8GPUStencilOperation& webgpu_enum) { … }
wgpu::StoreOp AsDawnEnum(const V8GPUStoreOp& webgpu_enum) { … }
wgpu::LoadOp AsDawnEnum(const V8GPULoadOp& webgpu_enum) { … }
wgpu::IndexFormat AsDawnEnum(const V8GPUIndexFormat& webgpu_enum) { … }
wgpu::FeatureName AsDawnEnum(const V8GPUFeatureName& webgpu_enum) { … }
wgpu::PrimitiveTopology AsDawnEnum(const V8GPUPrimitiveTopology& webgpu_enum) { … }
wgpu::BlendFactor AsDawnEnum(const V8GPUBlendFactor& webgpu_enum) { … }
wgpu::BlendOperation AsDawnEnum(const V8GPUBlendOperation& webgpu_enum) { … }
wgpu::VertexStepMode AsDawnEnum(const V8GPUVertexStepMode& webgpu_enum) { … }
wgpu::VertexFormat AsDawnEnum(const V8GPUVertexFormat& webgpu_enum) { … }
wgpu::AddressMode AsDawnEnum(const V8GPUAddressMode& webgpu_enum) { … }
wgpu::FilterMode AsDawnEnum(const V8GPUFilterMode& webgpu_enum) { … }
wgpu::MipmapFilterMode AsDawnEnum(const V8GPUMipmapFilterMode& webgpu_enum) { … }
wgpu::CullMode AsDawnEnum(const V8GPUCullMode& webgpu_enum) { … }
wgpu::FrontFace AsDawnEnum(const V8GPUFrontFace& webgpu_enum) { … }
wgpu::TextureAspect AsDawnEnum(const V8GPUTextureAspect& webgpu_enum) { … }
wgpu::ErrorFilter AsDawnEnum(const V8GPUErrorFilter& webgpu_enum) { … }
const char* FromDawnEnum(wgpu::BufferMapState dawn_enum) { … }
const char* FromDawnEnum(wgpu::BackendType dawn_enum) { … }
const char* FromDawnEnum(wgpu::AdapterType dawn_enum) { … }
bool FromDawnEnum(wgpu::WGSLFeatureName dawn_enum, V8WGSLFeatureName* result) { … }
}