moonbitstack/moonwgpu/types does not have a README file
pub(all) struct BindGroupDescriptor {
label : String
layout : BindGroupLayoutId
entries : Array[BindGroupEntry]
} derive(Debug)fn BindGroupDescriptor::new(layout~ : BindGroupLayoutId, entries~ : Array[BindGroupEntry], label? : String) -> BindGroupDescriptorpub(all) struct BindGroupLayoutDescriptor {
label : String
entries : Array[BindGroupLayoutEntry]
} derive(Debug)fn BindGroupLayoutDescriptor::new(entries~ : Array[BindGroupLayoutEntry], label? : String) -> BindGroupLayoutDescriptorpub(all) struct BindGroupLayoutEntry {
binding : Int
visibility : ShaderStages
kind : BindingLayout
count : Int?
} derive(Debug)fn BindGroupLayoutEntry::new(binding~ : Int, visibility~ : ShaderStages, kind~ : BindingLayout, count? : Int) -> BindGroupLayoutEntrypub(all) enum BindingLayout {
Buffer(BufferBindingLayout)
Sampler(SamplerBindingLayout)
Texture(TextureBindingLayout)
StorageTexture(StorageTextureBindingLayout)
} derive(Debug)pub(all) enum BindingResource {
Buffer(BufferBinding)
Sampler(SamplerId)
TextureView(TextureViewId)
} derive(Debug)pub(all) struct BlendComponent {
src_factor : BlendFactor
dst_factor : BlendFactor
operation : BlendOperation
} derive(Debug)fn BlendComponent::new(src_factor? : BlendFactor, dst_factor? : BlendFactor, operation? : BlendOperation) -> BlendComponentpub(all) struct BufferBindingLayout {
kind : BufferBindingType
has_dynamic_offset : Bool
min_binding_size : Int?
} derive(Debug)fn BufferBindingLayout::new(kind~ : BufferBindingType, has_dynamic_offset? : Bool, min_binding_size? : Int) -> BufferBindingLayoutpub(all) struct BufferDescriptor {
label : String
size : Int
usage : BufferUsages
mapped_at_creation : Bool
} derive(Debug)fn BufferDescriptor::new(size~ : Int, usage~ : BufferUsages, mapped_at_creation? : Bool, label? : String) -> BufferDescriptorimpl BitAnd for BufferUsagesimpl BitOr for BufferUsagesimpl Sub for BufferUsagespub(all) struct ClearTexture {
texture : TextureId
mip_level : Int
origin : Origin3d
size : Extent3d
aspect : TextureAspect
} derive(Debug)pub(all) struct ColorAttachment {
view : TextureViewId
resolve_target : TextureViewId?
load_op : LoadOp
clear_value : Color
store : StoreOp
} derive(Debug)fn ColorAttachment::new(view~ : TextureViewId, resolve_target? : TextureViewId, load_op? : LoadOp, clear_value? : Color, store? : StoreOp) -> ColorAttachmentpub(all) struct ColorTargetState {
format : TextureFormat
blend : BlendState?
write_mask : ColorWrites
} derive(Debug)fn ColorTargetState::new(format~ : TextureFormat, blend? : BlendState, write_mask? : ColorWrites) -> ColorTargetStateimpl BitAnd for ColorWritesimpl BitOr for ColorWritespub(all) enum Command {
CopyBufferToBuffer(CopyBufferToBuffer)
CopyBufferToTexture(CopyBufferToTexture)
CopyTextureToBuffer(CopyTextureToBuffer)
CopyTextureToTexture(CopyTextureToTexture)
ClearBuffer(ClearBuffer)
ClearTexture(ClearTexture)
ResolveQuerySet(ResolveQuerySet)
RenderPass(RenderPassCommand)
ComputePass(ComputePassCommand)
} derive(Debug)pub(all) struct CompilationMessage {
message : String
kind : CompilationMessageType
line_num : Int
line_pos : Int
offset : Int
length : Int
} derive(Eq, Debug)fn CompilationMessage::new(message~ : String, kind~ : CompilationMessageType, line_num? : Int, line_pos? : Int, offset? : Int, length? : Int) -> CompilationMessagepub(all) enum ComputeCommand {
SetPipeline(ComputePipelineId)
SetBindGroup(SetBindGroup)
SetImmediates(SetImmediates)
DispatchWorkgroups(DispatchArguments)
DispatchWorkgroupsIndirect(DispatchIndirect)
WriteTimestamp(WriteTimestamp)
InsertDebugMarker(String)
PushDebugGroup(String)
PopDebugGroup
} derive(Debug)pub(all) struct ComputePassCommand {
label : String
timestamp_writes : PassTimestampWrites?
commands : Array[ComputeCommand]
} derive(Debug)pub(all) struct ComputePassDescriptor {
label : String
timestamp_writes : PassTimestampWrites?
} derive(Debug)fn ComputePassDescriptor::new(label? : String, timestamp_writes? : PassTimestampWrites) -> ComputePassDescriptorpub(all) struct ComputePipelineDescriptor {
label : String
layout : PipelineLayoutId?
shader : ShaderModuleId
entry_point : String
constants : Array[(String, Double)]
} derive(Debug)fn ComputePipelineDescriptor::new(shader~ : ShaderModuleId, entry_point~ : String, layout? : PipelineLayoutId, constants? : Array[(String, Double)], label? : String) -> ComputePipelineDescriptorpub(all) struct CopyBufferToTexture {
source : TexelCopyBufferInfo
destination : TexelCopyTextureInfo
copy_size : Extent3d
} derive(Debug)pub(all) struct CopyExternalImageDestInfo {
texture : TextureId
mip_level : Int
origin : Origin3d
aspect : TextureAspect
premultiplied_alpha : Bool
color_space : PredefinedColorSpace
} derive(Debug)fn CopyExternalImageDestInfo::new(texture~ : TextureId, mip_level? : Int, origin? : Origin3d, aspect? : TextureAspect, premultiplied_alpha? : Bool, color_space? : PredefinedColorSpace) -> CopyExternalImageDestInfopub(all) struct CopyExternalImageSourceInfo {
image : ExternalImage
origin : Origin3d
flip_y : Bool
} derive(Debug)fn CopyExternalImageSourceInfo::new(image~ : ExternalImage, origin? : Origin3d, flip_y? : Bool) -> CopyExternalImageSourceInfopub(all) struct CopyTextureToBuffer {
source : TexelCopyTextureInfo
destination : TexelCopyBufferInfo
copy_size : Extent3d
} derive(Debug)pub(all) struct CopyTextureToTexture {
source : TexelCopyTextureInfo
destination : TexelCopyTextureInfo
copy_size : Extent3d
} derive(Debug)fn DepthStencilAttachment::new(view~ : TextureViewId, depth_load_op? : LoadOp, depth_clear_value? : Double, depth_store? : StoreOp, depth_read_only? : Bool, stencil_load_op? : LoadOp, stencil_clear_value? : Int, stencil_store? : StoreOp, stencil_read_only? : Bool) -> DepthStencilAttachmentpub(all) struct DepthStencilState {
format : TextureFormat
depth_write_enabled : Bool
depth_compare : CompareFunction
stencil : StencilState
bias : DepthBiasState
} derive(Debug)fn DepthStencilState::new(format~ : TextureFormat, depth_write_enabled? : Bool, depth_compare? : CompareFunction, stencil? : StencilState, bias? : DepthBiasState) -> DepthStencilStatefn DrawArguments::new(vertex_count~ : Int, instance_count? : Int, first_vertex? : Int, first_instance? : Int) -> DrawArgumentsfn DrawIndexedArguments::new(index_count~ : Int, instance_count? : Int, first_index? : Int, base_vertex? : Int, first_instance? : Int) -> DrawIndexedArgumentspub(all) enum ErrorKind {
InvalidBufferSize
InvalidBufferUsage
InvalidBufferState
InvalidTextureDescriptor
InvalidTextureDimension
InvalidTextureFormat
InvalidTextureUsage
InvalidTextureSampleCount
InvalidTextureViewDescriptor
InvalidSamplerDescriptor
InvalidBindGroupLayout
InvalidBindGroup
InvalidPipelineLayout
InvalidShaderModule
InvalidRenderPipeline
InvalidComputePipeline
InvalidVertexState
InvalidFragmentState
InvalidPrimitiveState
InvalidDepthStencilState
InvalidMultisampleState
InvalidCopyRange
InvalidCopySize
InvalidAlignment
InvalidBytesPerRow
InvalidSubresource
InvalidPassDescriptor
InvalidPassState
InvalidDraw
InvalidDispatch
PassNotEnded
EncoderFinished
InvalidResource
InvalidCanvasConfiguration
MissingFeature
LimitExceeded
DeviceLost
OutOfMemory
Internal
} derive(Eq, Debug)pub(all) struct ExternalImage {
label : String
size : Extent3d
format : TextureFormat
data : Bytes
} derive(Debug)fn ExternalImage::new(size~ : Extent3d, format~ : TextureFormat, data~ : Bytes, label? : String) -> ExternalImagepub(all) struct ExternalTextureDescriptor {
label : String
image : ExternalImage
color_space : PredefinedColorSpace
} derive(Debug)fn ExternalTextureDescriptor::new(image~ : ExternalImage, color_space? : PredefinedColorSpace, label? : String) -> ExternalTextureDescriptorpub(all) enum FeatureName {
CoreFeaturesAndLimits
DepthClipControl
Depth32floatStencil8
TextureCompressionBc
TextureCompressionBcSliced3d
TextureCompressionEtc2
TextureCompressionAstc
TextureCompressionAstcSliced3d
TimestampQuery
IndirectFirstInstance
ShaderF16
Rg11b10ufloatRenderable
Bgra8unormStorage
Float32Filterable
Float32Blendable
ClipDistances
DualSourceBlending
Subgroups
TextureFormatsTier1
TextureFormatsTier2
PrimitiveIndex
TextureComponentSwizzle
SubgroupSizeControl
TextureCompressionUnaligned
AtomicVec2uMinMax
} derive(Eq, Debug)pub(all) struct FormatInfo {
block_width : Int
block_height : Int
bytes_per_block : Int
bytes_per_sample : Int
sample_type : SampleType
aspect : FormatAspect
render_attachment : Bool
blendable : Bool
multisample : Bool
resolve : Bool
storage : StorageAccess
copy_src : Bool
copy_dst : Bool
feature : FeatureName?
} derive(Debug)pub(all) struct FragmentState {
shader : ShaderModuleId
entry_point : String
targets : Array[ColorTargetState]
} derive(Debug)fn FragmentState::new(shader~ : ShaderModuleId, entry_point~ : String, targets~ : Array[ColorTargetState]) -> FragmentStatepub(all) struct Limits {
max_texture_dimension_1d : Int
max_texture_dimension_2d : Int
max_texture_dimension_3d : Int
max_texture_array_layers : Int
max_bind_groups : Int
max_bind_groups_plus_vertex_buffers : Int
max_immediate_size : Int
max_bindings_per_bind_group : Int
max_dynamic_uniform_buffers_per_pipeline_layout : Int
max_dynamic_storage_buffers_per_pipeline_layout : Int
max_sampled_textures_per_shader_stage : Int
max_samplers_per_shader_stage : Int
max_storage_buffers_per_shader_stage : Int
max_storage_buffers_in_vertex_stage : Int
max_storage_buffers_in_fragment_stage : Int
max_storage_textures_per_shader_stage : Int
max_storage_textures_in_vertex_stage : Int
max_storage_textures_in_fragment_stage : Int
max_uniform_buffers_per_shader_stage : Int
max_uniform_buffer_binding_size : Int
max_storage_buffer_binding_size : Int
min_uniform_buffer_offset_alignment : Int
min_storage_buffer_offset_alignment : Int
max_vertex_buffers : Int
max_buffer_size : Int
max_vertex_attributes : Int
max_vertex_buffer_array_stride : Int
max_inter_stage_shader_variables : Int
max_color_attachments : Int
max_color_attachment_bytes_per_sample : Int
max_compute_workgroup_storage_size : Int
max_compute_invocations_per_workgroup : Int
max_compute_workgroup_size_x : Int
max_compute_workgroup_size_y : Int
max_compute_workgroup_size_z : Int
max_compute_workgroups_per_dimension : Int
} derive(Eq, Debug)pub(all) struct MultisampleState {
count : Int
mask : UInt
alpha_to_coverage_enabled : Bool
} derive(Debug)fn MultisampleState::new(count? : Int, mask? : UInt, alpha_to_coverage_enabled? : Bool) -> MultisampleStatepub(all) struct PassTimestampWrites {
query_set : QuerySetId
beginning_of_pass_write_index : Int?
end_of_pass_write_index : Int?
} derive(Debug)fn PassTimestampWrites::new(query_set~ : QuerySetId, beginning_of_pass_write_index? : Int, end_of_pass_write_index? : Int) -> PassTimestampWritespub(all) struct PipelineLayoutDescriptor {
label : String
bind_group_layouts : Array[BindGroupLayoutId]
} derive(Debug)fn PipelineLayoutDescriptor::new(bind_group_layouts~ : Array[BindGroupLayoutId], label? : String) -> PipelineLayoutDescriptorpub(all) struct PrimitiveState {
topology : PrimitiveTopology
strip_index_format : IndexFormat?
front_face : FrontFace
cull_mode : CullMode
unclipped_depth : Bool
} derive(Debug)fn PrimitiveState::new(topology? : PrimitiveTopology, strip_index_format? : IndexFormat, front_face? : FrontFace, cull_mode? : CullMode, unclipped_depth? : Bool) -> PrimitiveStatepub(all) enum RenderCommand {
SetPipeline(RenderPipelineId)
SetBindGroup(SetBindGroup)
SetImmediates(SetImmediates)
SetVertexBuffer(SetVertexBuffer)
SetIndexBuffer(SetIndexBuffer)
Draw(DrawArguments)
DrawIndexed(DrawIndexedArguments)
DrawIndirect(DrawIndirect)
DrawIndexedIndirect(DrawIndexedIndirect)
SetViewport(SetViewport)
SetScissorRect(SetScissorRect)
SetBlendConstant(Color)
SetStencilReference(Int)
BeginOcclusionQuery(Int)
EndOcclusionQuery
WriteTimestamp(WriteTimestamp)
ExecuteBundles(Array[RenderBundle])
InsertDebugMarker(String)
PushDebugGroup(String)
PopDebugGroup
} derive(Debug)pub(all) struct RenderPassCommand {
label : String
color_attachments : Array[ColorAttachment]
depth_stencil_attachment : DepthStencilAttachment?
timestamp_writes : PassTimestampWrites?
occlusion_query_set : QuerySetId?
commands : Array[RenderCommand]
} derive(Debug)pub(all) struct RenderPassDescriptor {
label : String
color_attachments : Array[ColorAttachment]
depth_stencil_attachment : DepthStencilAttachment?
timestamp_writes : PassTimestampWrites?
occlusion_query_set : QuerySetId?
} derive(Debug)fn RenderPassDescriptor::new(color_attachments? : Array[ColorAttachment], depth_stencil_attachment? : DepthStencilAttachment, timestamp_writes? : PassTimestampWrites, occlusion_query_set? : QuerySetId, label? : String) -> RenderPassDescriptorpub(all) struct RenderPipelineDescriptor {
label : String
layout : PipelineLayoutId?
vertex : VertexState
primitive : PrimitiveState
depth_stencil : DepthStencilState?
multisample : MultisampleState
fragment : FragmentState?
} derive(Debug)fn RenderPipelineDescriptor::new(vertex~ : VertexState, layout? : PipelineLayoutId, primitive? : PrimitiveState, depth_stencil? : DepthStencilState, multisample? : MultisampleState, fragment? : FragmentState, label? : String) -> RenderPipelineDescriptorpub(all) struct ResolveQuerySet {
query_set : QuerySetId
first_query : Int
query_count : Int
destination : BufferId
destination_offset : Int
} derive(Debug)pub(all) struct SamplerDescriptor {
label : String
address_mode_u : AddressMode
address_mode_v : AddressMode
address_mode_w : AddressMode
mag_filter : FilterMode
min_filter : FilterMode
mipmap_filter : FilterMode
lod_min_clamp : Double
lod_max_clamp : Double
compare : CompareFunction?
max_anisotropy : Int
} derive(Debug)fn SamplerDescriptor::new(label? : String, address_mode_u? : AddressMode, address_mode_v? : AddressMode, address_mode_w? : AddressMode, mag_filter? : FilterMode, min_filter? : FilterMode, mipmap_filter? : FilterMode, lod_min_clamp? : Double, lod_max_clamp? : Double, compare? : CompareFunction, max_anisotropy? : Int) -> SamplerDescriptorpub(all) struct SetBindGroup {
index : Int
group : BindGroupId
dynamic_offsets : Array[Int]
} derive(Debug)pub(all) struct SetIndexBuffer {
buffer : BufferId
format : IndexFormat
offset : Int
size : Int?
} derive(Debug)pub(all) struct SetViewport {
x : Double
y : Double
width : Double
height : Double
min_depth : Double
max_depth : Double
} derive(Debug)impl BitAnd for ShaderStagesimpl BitOr for ShaderStagespub(all) struct StencilFaceState {
compare : CompareFunction
fail_op : StencilOperation
depth_fail_op : StencilOperation
pass_op : StencilOperation
} derive(Debug)fn StencilFaceState::new(compare? : CompareFunction, fail_op? : StencilOperation, depth_fail_op? : StencilOperation, pass_op? : StencilOperation) -> StencilFaceStatepub(all) struct StencilState {
front : StencilFaceState
back : StencilFaceState
read_mask : Int
write_mask : Int
} derive(Debug)fn StencilState::new(front? : StencilFaceState, back? : StencilFaceState, read_mask? : Int, write_mask? : Int) -> StencilStatepub(all) struct StorageTextureBindingLayout {
access : StorageTextureAccess
format : TextureFormat
view_dimension : TextureViewDimension
} derive(Debug)fn StorageTextureBindingLayout::new(format~ : TextureFormat, access? : StorageTextureAccess, view_dimension? : TextureViewDimension) -> StorageTextureBindingLayoutpub(all) struct SurfaceCapabilities {
formats : Array[TextureFormat]
alpha_modes : Array[CanvasAlphaMode]
usages : TextureUsages
} derive(Debug)fn SurfaceCapabilities::new(formats~ : Array[TextureFormat], alpha_modes? : Array[CanvasAlphaMode], usages? : TextureUsages) -> SurfaceCapabilitiespub(all) struct SurfaceConfiguration {
format : TextureFormat
usage : TextureUsages
view_formats : Array[TextureFormat]
color_space : PredefinedColorSpace
tone_mapping : CanvasToneMapping
alpha_mode : CanvasAlphaMode
} derive(Debug)fn SurfaceConfiguration::new(format~ : TextureFormat, usage? : TextureUsages, view_formats? : Array[TextureFormat], color_space? : PredefinedColorSpace, tone_mapping? : CanvasToneMapping, alpha_mode? : CanvasAlphaMode) -> SurfaceConfigurationpub(all) struct TexelCopyBufferInfo {
buffer : BufferId
layout : TexelCopyBufferLayout
} derive(Debug)fn TexelCopyBufferInfo::new(buffer~ : BufferId, layout~ : TexelCopyBufferLayout) -> TexelCopyBufferInfopub(all) struct TexelCopyBufferLayout {
offset : Int
bytes_per_row : Int?
rows_per_image : Int?
} derive(Debug)fn TexelCopyBufferLayout::new(offset? : Int, bytes_per_row? : Int, rows_per_image? : Int) -> TexelCopyBufferLayoutpub(all) struct TexelCopyTextureInfo {
texture : TextureId
mip_level : Int
origin : Origin3d
aspect : TextureAspect
} derive(Debug)fn TexelCopyTextureInfo::new(texture~ : TextureId, mip_level? : Int, origin? : Origin3d, aspect? : TextureAspect) -> TexelCopyTextureInfopub(all) struct TextureBindingLayout {
sample_type : SampleType
view_dimension : TextureViewDimension
multisampled : Bool
} derive(Debug)fn TextureBindingLayout::new(sample_type? : SampleType, view_dimension? : TextureViewDimension, multisampled? : Bool) -> TextureBindingLayoutpub(all) struct TextureDescriptor {
label : String
size : Extent3d
mip_level_count : Int
sample_count : Int
dimension : TextureDimension
format : TextureFormat
usage : TextureUsages
view_formats : Array[TextureFormat]
texture_binding_view_dimension : TextureViewDimension?
} derive(Debug)fn TextureDescriptor::new(size~ : Extent3d, format~ : TextureFormat, usage~ : TextureUsages, mip_level_count? : Int, sample_count? : Int, dimension? : TextureDimension, view_formats? : Array[TextureFormat], texture_binding_view_dimension? : TextureViewDimension, label? : String) -> TextureDescriptorpub(all) enum TextureFormat {
R8unorm
R8snorm
R8uint
R8sint
R16unorm
R16snorm
R16uint
R16sint
R16float
Rg8unorm
Rg8snorm
Rg8uint
Rg8sint
R32uint
R32sint
R32float
Rg16unorm
Rg16snorm
Rg16uint
Rg16sint
Rg16float
Rgba8unorm
Rgba8unormSrgb
Rgba8snorm
Rgba8uint
Rgba8sint
Bgra8unorm
Bgra8unormSrgb
Rgb9e5ufloat
Rgb10a2uint
Rgb10a2unorm
Rg11b10ufloat
Rg32uint
Rg32sint
Rg32float
Rgba16unorm
Rgba16snorm
Rgba16uint
Rgba16sint
Rgba16float
Rgba32uint
Rgba32sint
Rgba32float
Stencil8
Depth16unorm
Depth24plus
Depth24plusStencil8
Depth32float
Depth32floatStencil8
Bc1RgbaUnorm
Bc1RgbaUnormSrgb
Bc2RgbaUnorm
Bc2RgbaUnormSrgb
Bc3RgbaUnorm
Bc3RgbaUnormSrgb
Bc4RUnorm
Bc4RSnorm
Bc5RgUnorm
Bc5RgSnorm
Bc6hRgbUfloat
Bc6hRgbFloat
Bc7RgbaUnorm
Bc7RgbaUnormSrgb
Etc2Rgb8unorm
Etc2Rgb8unormSrgb
Etc2Rgb8a1unorm
Etc2Rgb8a1unormSrgb
Etc2Rgba8unorm
Etc2Rgba8unormSrgb
EacR11unorm
EacR11snorm
EacRg11unorm
EacRg11snorm
Astc4x4Unorm
Astc4x4UnormSrgb
Astc5x4Unorm
Astc5x4UnormSrgb
Astc5x5Unorm
Astc5x5UnormSrgb
Astc6x5Unorm
Astc6x5UnormSrgb
Astc6x6Unorm
Astc6x6UnormSrgb
Astc8x5Unorm
Astc8x5UnormSrgb
Astc8x6Unorm
Astc8x6UnormSrgb
Astc8x8Unorm
Astc8x8UnormSrgb
Astc10x5Unorm
Astc10x5UnormSrgb
Astc10x6Unorm
Astc10x6UnormSrgb
Astc10x8Unorm
Astc10x8UnormSrgb
Astc10x10Unorm
Astc10x10UnormSrgb
Astc12x10Unorm
Astc12x10UnormSrgb
Astc12x12Unorm
Astc12x12UnormSrgb
} derive(Eq, Debug)impl Show for TextureFormatimpl BitAnd for TextureUsagesimpl BitOr for TextureUsagesimpl Sub for TextureUsagespub(all) struct TextureViewDescriptor {
label : String
format : TextureFormat?
dimension : TextureViewDimension?
aspect : TextureAspect
base_mip_level : Int
mip_level_count : Int?
base_array_layer : Int
array_layer_count : Int?
usage : TextureUsages?
swizzle : String?
} derive(Debug)fn TextureViewDescriptor::new(label? : String, format? : TextureFormat, dimension? : TextureViewDimension, aspect? : TextureAspect, base_mip_level? : Int, mip_level_count? : Int, base_array_layer? : Int, array_layer_count? : Int, usage? : TextureUsages, swizzle? : String) -> TextureViewDescriptorpub(all) struct VertexAttribute {
format : VertexFormat
offset : Int
shader_location : Int
} derive(Debug)fn VertexAttribute::new(format~ : VertexFormat, offset~ : Int, shader_location~ : Int) -> VertexAttributepub(all) struct VertexBufferLayout {
array_stride : Int
step_mode : VertexStepMode
attributes : Array[VertexAttribute]
} derive(Debug)fn VertexBufferLayout::new(array_stride~ : Int, step_mode~ : VertexStepMode, attributes~ : Array[VertexAttribute]) -> VertexBufferLayoutpub(all) enum VertexFormat {
Uint8
Uint8x2
Uint8x4
Sint8
Sint8x2
Sint8x4
Unorm8
Unorm8x2
Unorm8x4
Snorm8
Snorm8x2
Snorm8x4
Uint16
Uint16x2
Uint16x4
Sint16
Sint16x2
Sint16x4
Unorm16
Unorm16x2
Unorm16x4
Snorm16
Snorm16x2
Snorm16x4
Float16
Float16x2
Float16x4
Float32
Float32x2
Float32x3
Float32x4
Uint32
Uint32x2
Uint32x3
Uint32x4
Sint32
Sint32x2
Sint32x3
Sint32x4
Unorm1010102
Unorm8x4Bgra
Snorm1010102
} derive(Eq, Debug)impl Show for VertexFormatpub(all) struct VertexFormatInfo {
size : Int
components : Int
data_type : VertexDataType
} derive(Eq, Debug)pub(all) struct VertexState {
shader : ShaderModuleId
entry_point : String
buffers : Array[VertexBufferLayout]
} derive(Debug)fn VertexState::new(shader~ : ShaderModuleId, entry_point~ : String, buffers? : Array[VertexBufferLayout]) -> VertexStateInstall
Download zipThe WebGPU API for MoonBit.