GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
lib_webgpu_dawn.cc File Reference
#include "lib_webgpu.h"
#include "dawn/webgpu.h"
#include "dawn/dawn_proc.h"
#include "dawn/native/DawnNative.h"
#include <map>
#include <vector>
#include <assert.h>
Include dependency graph for lib_webgpu_dawn.cc:

Classes

struct  _WGpuObject
struct  _WGpuObjectBuffer

Macros

#define wgpu_power_preference_to_dawn(mode)
#define wgpu_buffer_usage_to_dawn(usage)
#define wgpu_map_mode_to_dawn(mode)
#define wgpu_texture_dimension_to_dawn(dim)
#define dawn_to_wgpu_texture_dimension(dim)
#define wgpu_texture_usage_flags_to_dawn(flags)
#define wgpu_texture_view_dimension_to_dawn(dim)
#define wgpu_texture_aspect_to_dawn(aspect)
#define wgpu_texture_format_to_dawn(format)
#define dawn_to_wgpu_texture_format(format)
#define wgpu_address_mode_to_dawn(mode)
#define wgpu_filter_mode_to_dawn(mode)
#define wgpu_mipmap_filter_mode_to_dawn(mode)
#define wgpu_compare_function_to_dawn(function)
#define wgpu_shader_storage_flags_to_dawn(flags)
#define wgpu_buffer_binding_type_to_dawn(type)
#define wgpu_sampler_binding_type_to_dawn(type)
#define wgpu_texture_sample_type_to_dawn(type)
#define wgpu_storage_texture_access_to_dawn(access)
#define wgpu_primitive_topology_to_dawn(topology)
#define wgpu_front_face_to_dawn(type)
#define wgpu_cull_mode_to_dawn(mode)
#define wgpu_color_write_flags_to_dawn(flags)
#define wgpu_blend_factor_to_dawn(factor)
#define wgpu_blend_operation_to_dawn(op)
#define wgpu_stencil_operation_to_dawn(op)
#define wgpu_index_format_to_dawn(format)
#define wgpu_vertex_format_to_dawn(format)
#define wgpu_vertex_step_mode_to_dawn(mode)
#define wgpu_load_op_to_dawn(op)
#define wgpu_store_op_to_dawn(op)
#define wgpu_query_type_to_dawn(type)
#define dawn_to_wgpu_query_type(type)
#define wgpu_error_filter_to_dawn(filter)
#define dawn_to_wgpu_device_lost_reason(reason)
#define wgpu_compute_pass_timestamp_location_to_dawn(location)
#define wgpu_render_pass_timestamp_location_to_dawn(location)

Enumerations

enum  _WgpuObjectType {
  kWebGPUInvalidObject = 0 , kWebGPUAdapter , kWebGPUDevice , kWebGPUBindGroupLayout ,
  kWebGPUBuffer , kWebGPUTexture , kWebGPUTextureView , kWebGPUExternalTexture ,
  kWebGPUSampler , kWebGPUBindGroup , kWebGPUPipelineLayout , kWebGPUShaderModule ,
  kWebGPUComputePipeline , kWebGPURenderPipeline , kWebGPUCommandBuffer , kWebGPUCommandEncoder ,
  kWebGPUComputePassEncoder , kWebGPURenderPassEncoder , kWebGPURenderBundle , kWebGPURenderBundleEncoder ,
  kWebGPUQueue , kWebGPUQuerySet , kWebGPUCanvasContext
}
enum  _WGpuBufferMapState { kWebGPUBufferMapStateUnmapped , kWebGPUBufferMapStatePending , kWebGPUBufferMapStateMappedForWriting , kWebGPUBufferMapStateMappedForReading }

Functions

uint32_t wgpu_get_num_live_objects ()
void wgpu_object_destroy (WGpuObjectBase wgpuObject)
void wgpu_destroy_all_objects ()
WGpuCanvasContext wgpu_canvas_get_webgpu_context (HWND hwnd)
EM_BOOL wgpu_is_valid_object (WGpuObjectBase obj)
void wgpu_object_set_label (WGpuObjectBase objBase, const char *label)
int wgpu_object_get_label (WGpuObjectBase obj, char *dstLabel, uint32_t dstLabelSize)
EM_BOOL navigator_gpu_request_adapter_async (const WGpuRequestAdapterOptions *options, WGpuRequestAdapterCallback adapterCallback, void *userData)
WGpuAdapter navigator_gpu_request_adapter_sync (const WGpuRequestAdapterOptions *options)
void navigator_gpu_request_adapter_async_simple (WGpuRequestAdapterCallback adapterCallback)
WGpuAdapter navigator_gpu_request_adapter_sync_simple ()
WGPU_TEXTURE_FORMAT navigator_gpu_get_preferred_canvas_format ()
EM_BOOL wgpu_is_adapter (WGpuObjectBase object)
WGPU_FEATURES_BITFIELD wgpu_adapter_or_device_get_features (WGpuAdapter adapterOrDevice)
EM_BOOL wgpu_adapter_or_device_supports_feature (WGpuAdapter adapterOrDevice, WGPU_FEATURES_BITFIELD feature)
void wgpu_adapter_or_device_get_limits (WGpuAdapter adapterOrDevice, WGpuSupportedLimits *limits)
EM_BOOL wgpu_adapter_is_fallback_adapter (WGpuAdapter adapter)
void wgpu_adapter_request_device_async (WGpuAdapter adapter, const WGpuDeviceDescriptor *descriptor, WGpuRequestDeviceCallback deviceCallback, void *userData)
WGpuDevice wgpu_adapter_request_device_sync (WGpuAdapter adapter, const WGpuDeviceDescriptor *descriptor)
void wgpu_adapter_request_device_async_simple (WGpuAdapter adapter, WGpuRequestDeviceCallback deviceCallback)
WGpuDevice wgpu_adapter_request_device_sync_simple (WGpuAdapter adapter)
void wgpu_adapter_request_adapter_info_async (WGpuAdapter adapter, const char **unmaskHints, WGpuRequestAdapterInfoCallback callback, void *userData)
EM_BOOL wgpu_is_device (WGpuObjectBase object)
WGpuQueue wgpu_device_get_queue (WGpuDevice device)
void wgpu_device_tick (WGpuDevice device)
WGpuBuffer wgpu_device_create_buffer (WGpuDevice device, const WGpuBufferDescriptor *bufferDesc)
WGpuTexture wgpu_device_create_texture (WGpuDevice device, const WGpuTextureDescriptor *textureDesc)
WGpuSampler wgpu_device_create_sampler (WGpuDevice device, const WGpuSamplerDescriptor *samplerDesc)
WGpuExternalTexture wgpu_device_import_external_texture (WGpuDevice device, const WGpuExternalTextureDescriptor *externalTextureDesc)
WGpuBindGroupLayout wgpu_device_create_bind_group_layout (WGpuDevice device, const WGpuBindGroupLayoutEntry *bindGroupLayoutEntries, int numEntries)
WGpuPipelineLayout wgpu_device_create_pipeline_layout (WGpuDevice device, const WGpuBindGroupLayout *bindGroupLayouts, int numLayouts)
WGpuBindGroup wgpu_device_create_bind_group (WGpuDevice device, WGpuBindGroupLayout bindGroupLayout, const WGpuBindGroupEntry *entries, int numEntries)
WGpuShaderModule wgpu_device_create_shader_module (WGpuDevice device, const WGpuShaderModuleDescriptor *shaderModuleDesc)
WGpuComputePipeline wgpu_device_create_compute_pipeline (WGpuDevice device, WGpuShaderModule computeModule, const char *entryPoint, WGpuPipelineLayout layout, const WGpuPipelineConstant *constants, int numConstants)
void wgpu_device_create_compute_pipeline_async (WGpuDevice device, WGpuShaderModule computeModule, const char *entryPoint, WGpuPipelineLayout layout, const WGpuPipelineConstant *constants, int numConstants, WGpuCreatePipelineCallback callback, void *userData)
WGpuRenderPipeline wgpu_device_create_render_pipeline (WGpuDevice device, const WGpuRenderPipelineDescriptor *renderPipelineDesc)
void wgpu_device_create_render_pipeline_async (WGpuDevice device, const WGpuRenderPipelineDescriptor *renderPipelineDesc, WGpuCreatePipelineCallback callback, void *userData)
WGpuCommandEncoder wgpu_device_create_command_encoder (WGpuDevice device, const WGpuCommandEncoderDescriptor *commandEncoderDesc)
WGpuCommandEncoder wgpu_device_create_command_encoder_simple (WGpuDevice device)
WGpuRenderBundleEncoder wgpu_device_create_render_bundle_encoder (WGpuDevice device, const WGpuRenderBundleEncoderDescriptor *renderBundleEncoderDesc)
WGpuQuerySet wgpu_device_create_query_set (WGpuDevice device, const WGpuQuerySetDescriptor *querySetDesc)
EM_BOOL wgpu_is_buffer (WGpuObjectBase object)
void wgpu_buffer_map_async (WGpuBuffer buffer, WGpuBufferMapCallback callback, void *userData, WGPU_MAP_MODE_FLAGS mode, double_int53_t offset, double_int53_t size)
void wgpu_buffer_map_sync (WGpuBuffer buffer, WGPU_MAP_MODE_FLAGS mode, double_int53_t offset, double_int53_t size)
double_int53_t wgpu_buffer_get_mapped_range (WGpuBuffer buffer, double_int53_t startOffset, double_int53_t size)
void wgpu_buffer_read_mapped_range (WGpuBuffer buffer, double_int53_t startOffset, double_int53_t subOffset, void *dst, double_int53_t size)
void wgpu_buffer_write_mapped_range (WGpuBuffer buffer, double_int53_t startOffset, double_int53_t subOffset, const void *src, double_int53_t size)
void wgpu_buffer_unmap (WGpuBuffer buffer)
double_int53_t wgpu_buffer_size (WGpuBuffer buffer)
WGPU_BUFFER_USAGE_FLAGS wgpu_buffer_usage (WGpuBuffer buffer)
WGPU_BUFFER_MAP_STATE wgpu_buffer_map_state (WGpuBuffer buffer)
EM_BOOL wgpu_is_texture (WGpuObjectBase object)
WGpuTextureView wgpu_texture_create_view (WGpuTexture texture, const WGpuTextureViewDescriptor *textureViewDesc)
WGpuTextureView wgpu_texture_create_view_simple (WGpuTexture texture)
uint32_t wgpu_texture_width (WGpuTexture texture)
uint32_t wgpu_texture_height (WGpuTexture texture)
uint32_t wgpu_texture_depth_or_array_layers (WGpuTexture texture)
uint32_t wgpu_texture_mip_level_count (WGpuTexture texture)
uint32_t wgpu_texture_sample_count (WGpuTexture texture)
WGPU_TEXTURE_DIMENSION wgpu_texture_dimension (WGpuTexture texture)
WGPU_TEXTURE_FORMAT wgpu_texture_format (WGpuTexture texture)
WGPU_TEXTURE_USAGE_FLAGS wgpu_texture_usage (WGpuTexture texture)
EM_BOOL wgpu_is_texture_view (WGpuObjectBase object)
EM_BOOL wgpu_is_external_texture (WGpuObjectBase object)
EM_BOOL wgpu_is_sampler (WGpuObjectBase object)
EM_BOOL wgpu_is_bind_group_layout (WGpuObjectBase object)
EM_BOOL wgpu_is_bind_group (WGpuObjectBase object)
EM_BOOL wgpu_is_pipeline_layout (WGpuObjectBase object)
EM_BOOL wgpu_is_shader_module (WGpuObjectBase object)
void wgpu_shader_module_get_compilation_info_async (WGpuShaderModule shaderModule, WGpuGetCompilationInfoCallback callback, void *userData)
WGpuBindGroupLayout wgpu_pipeline_get_bind_group_layout (WGpuObjectBase pipelineBase, uint32_t index)
EM_BOOL wgpu_is_compute_pipeline (WGpuObjectBase object)
EM_BOOL wgpu_is_render_pipeline (WGpuObjectBase object)
EM_BOOL wgpu_is_command_buffer (WGpuObjectBase object)
void wgpu_encoder_push_debug_group (WGpuDebugCommandsMixin encoder, const char *groupLabel)
void wgpu_encoder_pop_debug_group (WGpuDebugCommandsMixin encoder)
void wgpu_encoder_insert_debug_marker (WGpuDebugCommandsMixin encoder, const char *markerLabel)
EM_BOOL wgpu_is_command_encoder (WGpuObjectBase object)
WGpuRenderPassEncoder wgpu_command_encoder_begin_render_pass (WGpuCommandEncoder commandEncoder, const WGpuRenderPassDescriptor *renderPassDesc)
WGpuRenderPassEncoder wgpu_command_encoder_begin_render_pass_1color_0depth (WGpuCommandEncoder commandEncoder, const WGpuRenderPassDescriptor *renderPassDesc)
WGpuComputePassEncoder wgpu_command_encoder_begin_compute_pass (WGpuCommandEncoder commandEncoder, const WGpuComputePassDescriptor *computePassDesc)
void wgpu_command_encoder_copy_buffer_to_buffer (WGpuCommandEncoder commandEncoder, WGpuBuffer source, double_int53_t sourceOffset, WGpuBuffer destination, double_int53_t destinationOffset, double_int53_t size)
void wgpu_command_encoder_copy_buffer_to_texture (WGpuCommandEncoder commandEncoder, const WGpuImageCopyBuffer *source, const WGpuImageCopyTexture *destination, uint32_t copyWidth, uint32_t copyHeight, uint32_t copyDepthOrArrayLayers)
void wgpu_command_encoder_copy_texture_to_buffer (WGpuCommandEncoder commandEncoder, const WGpuImageCopyTexture *source, const WGpuImageCopyBuffer *destination, uint32_t copyWidth, uint32_t copyHeight, uint32_t copyDepthOrArrayLayers)
void wgpu_command_encoder_copy_texture_to_texture (WGpuCommandEncoder commandEncoder, const WGpuImageCopyTexture *source, const WGpuImageCopyTexture *destination, uint32_t copyWidth, uint32_t copyHeight, uint32_t copyDepthOrArrayLayers)
void wgpu_command_encoder_clear_buffer (WGpuCommandEncoder commandEncoder, WGpuBuffer buffer, double_int53_t offset, double_int53_t size)
void wgpu_command_encoder_write_timestamp (WGpuCommandEncoder commandEncoder, WGpuQuerySet querySet, uint32_t queryIndex)
void wgpu_command_encoder_resolve_query_set (WGpuCommandEncoder commandEncoder, WGpuQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGpuBuffer destination, double_int53_t destinationOffset)
WGpuCommandBuffer wgpu_encoder_finish (WGpuObjectBase commandOrRenderBundleEncoder)
EM_BOOL wgpu_is_binding_commands_mixin (WGpuObjectBase object)
void wgpu_encoder_set_bind_group (WGpuBindingCommandsMixin encoder, uint32_t index, WGpuBindGroup bindGroup, const uint32_t *dynamicOffsets, uint32_t numDynamicOffsets)
void wgpu_encoder_set_pipeline (WGpuBindingCommandsMixin encoder, WGpuObjectBase pipeline)
void wgpu_encoder_end (WGpuBindingCommandsMixin encoder)
EM_BOOL wgpu_is_compute_pass_encoder (WGpuObjectBase object)
void wgpu_compute_pass_encoder_dispatch_workgroups (WGpuComputePassEncoder encoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpu_compute_pass_encoder_dispatch_workgroups_indirect (WGpuComputePassEncoder encoder, WGpuBuffer indirectBuffer, double_int53_t indirectOffset)
EM_BOOL wgpu_is_render_commands_mixin (WGpuObjectBase object)
EM_BOOL wgpu_is_render_pass_encoder (WGpuObjectBase object)
EM_BOOL wgpu_is_render_bundle_encoder (WGpuObjectBase object)
void wgpu_render_commands_mixin_set_index_buffer (WGpuRenderCommandsMixin renderCommandsMixin, WGpuBuffer buffer, WGPU_INDEX_FORMAT indexFormat, double_int53_t offset, double_int53_t size)
void wgpu_render_commands_mixin_set_vertex_buffer (WGpuRenderCommandsMixin renderCommandsMixin, int32_t slot, WGpuBuffer buffer, double_int53_t offset, double_int53_t size)
void wgpu_render_commands_mixin_draw (WGpuRenderCommandsMixin renderCommandsMixin, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpu_render_commands_mixin_draw_indexed (WGpuRenderCommandsMixin renderCommandsMixin, uint32_t indexCount, uint32_t instanceCount, uint32_t firstVertex, int32_t baseVertex, uint32_t firstInstance)
void wgpu_render_commands_mixin_draw_indirect (WGpuRenderCommandsMixin renderCommandsMixin, WGpuBuffer indirectBuffer, double_int53_t indirectOffset)
void wgpu_render_commands_mixin_draw_indexed_indirect (WGpuRenderCommandsMixin renderCommandsMixin, WGpuBuffer indirectBuffer, double_int53_t indirectOffset)
void wgpu_render_pass_encoder_set_viewport (WGpuRenderPassEncoder encoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpu_render_pass_encoder_set_scissor_rect (WGpuRenderPassEncoder encoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpu_render_pass_encoder_set_blend_constant (WGpuRenderPassEncoder encoder, double r, double g, double b, double a)
void wgpu_render_pass_encoder_set_stencil_reference (WGpuRenderPassEncoder encoder, uint32_t stencilValue)
void wgpu_render_pass_encoder_begin_occlusion_query (WGpuRenderPassEncoder encoder, int32_t queryIndex)
void wgpu_render_pass_encoder_end_occlusion_query (WGpuRenderPassEncoder encoder)
void wgpu_render_pass_encoder_execute_bundles (WGpuRenderPassEncoder encoder, const WGpuRenderBundle *bundles, int numBundles)
EM_BOOL wgpu_is_render_bundle (WGpuObjectBase object)
EM_BOOL wgpu_is_queue (WGpuObjectBase object)
void wgpu_queue_submit_one_and_destroy (WGpuQueue queue, WGpuCommandBuffer commandBuffer)
void wgpu_queue_submit_multiple_and_destroy (WGpuQueue queue, const WGpuCommandBuffer *commandBuffers, int numCommandBuffers)
void wgpu_queue_set_on_submitted_work_done_callback (WGpuQueue queue, WGpuOnSubmittedWorkDoneCallback callback, void *userData)
void wgpu_queue_write_buffer (WGpuQueue queue, WGpuBuffer buffer, double_int53_t bufferOffset, const void *data, double_int53_t size)
void wgpu_queue_write_texture (WGpuQueue queue, const WGpuImageCopyTexture *destination, const void *data, uint32_t bytesPerBlockRow, uint32_t blockRowsPerImage, uint32_t writeWidth, uint32_t writeHeight, uint32_t writeDepthOrArrayLayers)
void wgpu_queue_copy_external_image_to_texture (WGpuQueue queue, const WGpuImageCopyExternalImage *source, const WGpuImageCopyTextureTagged *destination, uint32_t copyWidth, uint32_t copyHeight, uint32_t copyDepthOrArrayLayers)
EM_BOOL wgpu_is_query_set (WGpuObjectBase object)
WGPU_QUERY_TYPE wgpu_query_set_type (WGpuQuerySet querySet)
uint32_t wgpu_query_set_count (WGpuQuerySet querySet)
EM_BOOL wgpu_is_canvas_context (WGpuObjectBase object)
void wgpu_canvas_context_configure (WGpuCanvasContext canvasContext, const WGpuCanvasConfiguration *config, int width, int height)
void wgpu_canvas_context_unconfigure (WGpuCanvasContext canvasContext)
WGpuTexture wgpu_canvas_context_get_current_texture (WGpuCanvasContext canvasContext)
WGpuTextureView wgpu_canvas_context_get_current_texture_view (WGpuCanvasContext canvasContext)
void wgpu_canvas_context_present (WGpuCanvasContext canvasContext)
void wgpu_device_set_lost_callback (WGpuDevice device, WGpuDeviceLostCallback callback, void *userData)
void wgpu_device_push_error_scope (WGpuDevice device, WGPU_ERROR_FILTER filter)
void wgpu_device_pop_error_scope_async (WGpuDevice device, WGpuDeviceErrorCallback callback, void *userData)
void wgpu_device_set_uncapturederror_callback (WGpuDevice device, WGpuDeviceErrorCallback callback, void *userData)
void wgpu_load_image_bitmap_from_url_async (const char *url, EM_BOOL flipY, WGpuLoadImageBitmapCallback callback, void *userData)

Macro Definition Documentation

◆ dawn_to_wgpu_device_lost_reason

#define dawn_to_wgpu_device_lost_reason ( reason)
Value:
Dawn_to_WGPU_DEVICE_LOST_REASON[reason]

◆ dawn_to_wgpu_query_type

#define dawn_to_wgpu_query_type ( type)
Value:
Dawn_to_WGPU_QUERY_TYPE[type]

◆ dawn_to_wgpu_texture_dimension

#define dawn_to_wgpu_texture_dimension ( dim)
Value:
Dawn_to_WGPU_TEXTURE_DIMENSION[dim]

◆ dawn_to_wgpu_texture_format

#define dawn_to_wgpu_texture_format ( format)
Value:
Dawn_to_WGPU_TEXTURE_FORMAT[format]
instead of< li > Displaying models works via URL t expect full length movie as the output of this process< li > Different animation models are very limited basically just translate rotate</ul >< h2 > What to do if your hosting location has no php</h2 >< ul >< li > comment out or remove display php lines at the beginning< li > you will lose threads too< li > every zip file distributed by meshpage org has one of those display php files with this issue</ul >< h2 > What should I do to serve the files via http</h2 > I get some random triangles that do not belong to the model</h2 > The engine works correctly The obj file supports quads and polygons But some external tools that create obj files insert random polygons to the file to discourage rendering of polygons We consider polygon rendering is important and our engine should support it by default If you have we have disable_polygons() feature in the engine to get rid of the trash. But real solution is to change the tool you use to create the .obj file/check the .obj file that it doesn 't contain random(invisible) polygons that do not render in competing 3d engines. Our engine does not have the performance problems normally associated with polygons given that triangle quad polygon type change does not cause additional draw commands to the opengl rendering< p > GLTF standard organisation made significant mistake when specifying GLTF file format
Definition meshpage.php:1092

◆ wgpu_address_mode_to_dawn

#define wgpu_address_mode_to_dawn ( mode)
Value:
WGPU_ADDRESS_MODE_to_Dawn[mode]

◆ wgpu_blend_factor_to_dawn

#define wgpu_blend_factor_to_dawn ( factor)
Value:
WGPU_BLEND_FACTOR_to_Dawn[factor]

◆ wgpu_blend_operation_to_dawn

#define wgpu_blend_operation_to_dawn ( op)
Value:
WGPU_BLEND_OPERATION_to_Dawn[op]

◆ wgpu_buffer_binding_type_to_dawn

#define wgpu_buffer_binding_type_to_dawn ( type)
Value:
WGPU_BUFFER_BINDING_TYPE_to_Dawn[type]

◆ wgpu_buffer_usage_to_dawn

#define wgpu_buffer_usage_to_dawn ( usage)
Value:
(WGPUBufferUsage)usage
void usage()
Definition main.cc:8

◆ wgpu_color_write_flags_to_dawn

#define wgpu_color_write_flags_to_dawn ( flags)
Value:
(WGPUColorWriteMaskFlags)flags

◆ wgpu_compare_function_to_dawn

#define wgpu_compare_function_to_dawn ( function)
Value:
WGPU_COMPARE_FUNCTION_to_Dawn[function]
void function(void)
Definition memory_leak_test.cpp:26

◆ wgpu_compute_pass_timestamp_location_to_dawn

#define wgpu_compute_pass_timestamp_location_to_dawn ( location)
Value:
WGPU_COMPUTE_PASS_TIMESTAMP_LOCATION_to_Dawn[location]

◆ wgpu_cull_mode_to_dawn

#define wgpu_cull_mode_to_dawn ( mode)
Value:
WGPU_CULL_MODE_to_Dawn[mode]

◆ wgpu_error_filter_to_dawn

#define wgpu_error_filter_to_dawn ( filter)
Value:
WGPU_ERROR_FILTER_to_Dawn[filter]

◆ wgpu_filter_mode_to_dawn

#define wgpu_filter_mode_to_dawn ( mode)
Value:
WGPU_FILTER_MODE_to_Dawn[mode]

◆ wgpu_front_face_to_dawn

#define wgpu_front_face_to_dawn ( type)
Value:
WGPU_FRONT_FACE_to_Dawn[type]

◆ wgpu_index_format_to_dawn

#define wgpu_index_format_to_dawn ( format)
Value:
WGPU_INDEX_FORMAT_to_Dawn[format]

◆ wgpu_load_op_to_dawn

#define wgpu_load_op_to_dawn ( op)
Value:
WGPU_LOAD_OP_to_Dawn[op]

◆ wgpu_map_mode_to_dawn

#define wgpu_map_mode_to_dawn ( mode)
Value:
(WGPUMapMode)mode

◆ wgpu_mipmap_filter_mode_to_dawn

#define wgpu_mipmap_filter_mode_to_dawn ( mode)
Value:
WGPU_MIPMAP_FILTER_MODE_to_Dawn[mode]

◆ wgpu_power_preference_to_dawn

#define wgpu_power_preference_to_dawn ( mode)
Value:
WGPU_POWER_PREFERENCE_to_Dawn[mode]

◆ wgpu_primitive_topology_to_dawn

#define wgpu_primitive_topology_to_dawn ( topology)
Value:
WGPU_PRIMITIVE_TOPOLOGY_to_Dawn[topology]

◆ wgpu_query_type_to_dawn

#define wgpu_query_type_to_dawn ( type)
Value:
WGPU_QUERY_TYPE_to_Dawn[type]

◆ wgpu_render_pass_timestamp_location_to_dawn

#define wgpu_render_pass_timestamp_location_to_dawn ( location)
Value:
WGPU_RENDER_PASS_TIMESTAMP_LOCATION_to_Dawn[location]

◆ wgpu_sampler_binding_type_to_dawn

#define wgpu_sampler_binding_type_to_dawn ( type)
Value:
WGPU_SAMPLER_BINDING_TYPE_to_Dawn[type];

◆ wgpu_shader_storage_flags_to_dawn

#define wgpu_shader_storage_flags_to_dawn ( flags)
Value:
(WGPUShaderStageFlags)flags

◆ wgpu_stencil_operation_to_dawn

#define wgpu_stencil_operation_to_dawn ( op)
Value:
WGPU_STENCIL_OPERATION_to_Dawn[op]

◆ wgpu_storage_texture_access_to_dawn

#define wgpu_storage_texture_access_to_dawn ( access)
Value:
WGPU_STORAGE_TEXTURE_ACCESS_to_Dawn[access]

◆ wgpu_store_op_to_dawn

#define wgpu_store_op_to_dawn ( op)
Value:
WGPU_STORE_OP_to_Dawn[op]

◆ wgpu_texture_aspect_to_dawn

#define wgpu_texture_aspect_to_dawn ( aspect)
Value:
WGPU_TEXTURE_ASPECT_to_Dawn[aspect]

◆ wgpu_texture_dimension_to_dawn

#define wgpu_texture_dimension_to_dawn ( dim)
Value:
WGPU_TEXTURE_DIMENSION_to_Dawn[dim]

◆ wgpu_texture_format_to_dawn

#define wgpu_texture_format_to_dawn ( format)
Value:
WGPU_TEXTURE_FORMAT_to_Dawn[format]

◆ wgpu_texture_sample_type_to_dawn

#define wgpu_texture_sample_type_to_dawn ( type)
Value:
WGPU_TEXTURE_SAMPLE_TYPE_to_Dawn[type]

◆ wgpu_texture_usage_flags_to_dawn

#define wgpu_texture_usage_flags_to_dawn ( flags)
Value:
(WGPUTextureUsage)flags

◆ wgpu_texture_view_dimension_to_dawn

#define wgpu_texture_view_dimension_to_dawn ( dim)
Value:
WGPU_TEXTURE_VIEW_DIMENSION_to_Dawn[dim]

◆ wgpu_vertex_format_to_dawn

#define wgpu_vertex_format_to_dawn ( format)
Value:
(format == 0 ? WGPUVertexFormat_Undefined : WGPU_VERTEX_FORMAT_to_Dawn[format - (WGPU_VERTEX_FORMAT_UINT8X2 - 1)])
#define WGPU_VERTEX_FORMAT_UINT8X2
Definition lib_webgpu.h:1899

◆ wgpu_vertex_step_mode_to_dawn

#define wgpu_vertex_step_mode_to_dawn ( mode)
Value:
WGPU_VERTEX_STEP_MODE_to_Dawn[mode]

Enumeration Type Documentation

◆ _WGpuBufferMapState

Enumerator
kWebGPUBufferMapStateUnmapped 
kWebGPUBufferMapStatePending 
kWebGPUBufferMapStateMappedForWriting 
kWebGPUBufferMapStateMappedForReading 

◆ _WgpuObjectType

Enumerator
kWebGPUInvalidObject 
kWebGPUAdapter 
kWebGPUDevice 
kWebGPUBindGroupLayout 
kWebGPUBuffer 
kWebGPUTexture 
kWebGPUTextureView 
kWebGPUExternalTexture 
kWebGPUSampler 
kWebGPUBindGroup 
kWebGPUPipelineLayout 
kWebGPUShaderModule 
kWebGPUComputePipeline 
kWebGPURenderPipeline 
kWebGPUCommandBuffer 
kWebGPUCommandEncoder 
kWebGPUComputePassEncoder 
kWebGPURenderPassEncoder 
kWebGPURenderBundle 
kWebGPURenderBundleEncoder 
kWebGPUQueue 
kWebGPUQuerySet 
kWebGPUCanvasContext 

Function Documentation

◆ navigator_gpu_get_preferred_canvas_format()

WGPU_TEXTURE_FORMAT navigator_gpu_get_preferred_canvas_format ( void )

◆ navigator_gpu_request_adapter_async()

EM_BOOL navigator_gpu_request_adapter_async ( const WGpuRequestAdapterOptions * options,
WGpuRequestAdapterCallback adapterCallback,
void * userData )

◆ navigator_gpu_request_adapter_async_simple()

void navigator_gpu_request_adapter_async_simple ( WGpuRequestAdapterCallback adapterCallback)

◆ navigator_gpu_request_adapter_sync()

WGpuAdapter navigator_gpu_request_adapter_sync ( const WGpuRequestAdapterOptions * options)
Here is the caller graph for this function:

◆ navigator_gpu_request_adapter_sync_simple()

WGpuAdapter navigator_gpu_request_adapter_sync_simple ( void )
Here is the caller graph for this function:

◆ wgpu_adapter_is_fallback_adapter()

EM_BOOL wgpu_adapter_is_fallback_adapter ( WGpuAdapter adapter)

◆ wgpu_adapter_or_device_get_features()

WGPU_FEATURES_BITFIELD wgpu_adapter_or_device_get_features ( WGpuAdapter adapterOrDevice)

◆ wgpu_adapter_or_device_get_limits()

void wgpu_adapter_or_device_get_limits ( WGpuAdapter adapterOrDevice,
WGpuSupportedLimits * limits )

◆ wgpu_adapter_or_device_supports_feature()

EM_BOOL wgpu_adapter_or_device_supports_feature ( WGpuAdapter adapterOrDevice,
WGPU_FEATURES_BITFIELD feature )

◆ wgpu_adapter_request_adapter_info_async()

void wgpu_adapter_request_adapter_info_async ( WGpuAdapter adapter,
const char ** unmaskHints,
WGpuRequestAdapterInfoCallback callback,
void * userData )

◆ wgpu_adapter_request_device_async()

void wgpu_adapter_request_device_async ( WGpuAdapter adapter,
const WGpuDeviceDescriptor * descriptor,
WGpuRequestDeviceCallback deviceCallback,
void * userData )
Here is the caller graph for this function:

◆ wgpu_adapter_request_device_async_simple()

void wgpu_adapter_request_device_async_simple ( WGpuAdapter adapter,
WGpuRequestDeviceCallback deviceCallback )

◆ wgpu_adapter_request_device_sync()

WGpuDevice wgpu_adapter_request_device_sync ( WGpuAdapter adapter,
const WGpuDeviceDescriptor * descriptor )
Here is the caller graph for this function:

◆ wgpu_adapter_request_device_sync_simple()

WGpuDevice wgpu_adapter_request_device_sync_simple ( WGpuAdapter adapter)

◆ wgpu_buffer_get_mapped_range()

double_int53_t wgpu_buffer_get_mapped_range ( WGpuBuffer buffer,
double_int53_t startOffset,
double_int53_t size )

◆ wgpu_buffer_map_async()

void wgpu_buffer_map_async ( WGpuBuffer buffer,
WGpuBufferMapCallback callback,
void * userData,
WGPU_MAP_MODE_FLAGS mode,
double_int53_t offset,
double_int53_t size )

◆ wgpu_buffer_map_state()

WGPU_BUFFER_MAP_STATE wgpu_buffer_map_state ( WGpuBuffer buffer)

◆ wgpu_buffer_map_sync()

void wgpu_buffer_map_sync ( WGpuBuffer buffer,
WGPU_MAP_MODE_FLAGS mode,
double_int53_t offset,
double_int53_t size )

◆ wgpu_buffer_read_mapped_range()

void wgpu_buffer_read_mapped_range ( WGpuBuffer buffer,
double_int53_t startOffset,
double_int53_t subOffset,
void * dst,
double_int53_t size )

◆ wgpu_buffer_size()

double_int53_t wgpu_buffer_size ( WGpuBuffer buffer)
Here is the caller graph for this function:

◆ wgpu_buffer_unmap()

void wgpu_buffer_unmap ( WGpuBuffer buffer)

◆ wgpu_buffer_usage()

WGPU_BUFFER_USAGE_FLAGS wgpu_buffer_usage ( WGpuBuffer buffer)

◆ wgpu_buffer_write_mapped_range()

void wgpu_buffer_write_mapped_range ( WGpuBuffer buffer,
double_int53_t startOffset,
double_int53_t subOffset,
const void * src,
double_int53_t size )

◆ wgpu_canvas_context_configure()

void wgpu_canvas_context_configure ( WGpuCanvasContext canvasContext,
const WGpuCanvasConfiguration * config,
int width,
int height )

◆ wgpu_canvas_context_get_current_texture()

WGpuTexture wgpu_canvas_context_get_current_texture ( WGpuCanvasContext canvasContext)

◆ wgpu_canvas_context_get_current_texture_view()

WGpuTextureView wgpu_canvas_context_get_current_texture_view ( WGpuCanvasContext canvasContext)

◆ wgpu_canvas_context_present()

void wgpu_canvas_context_present ( WGpuCanvasContext canvasContext)

◆ wgpu_canvas_context_unconfigure()

void wgpu_canvas_context_unconfigure ( WGpuCanvasContext canvasContext)

◆ wgpu_canvas_get_webgpu_context()

WGpuCanvasContext wgpu_canvas_get_webgpu_context ( HWND hwnd)

◆ wgpu_command_encoder_begin_compute_pass()

WGpuComputePassEncoder wgpu_command_encoder_begin_compute_pass ( WGpuCommandEncoder commandEncoder,
const WGpuComputePassDescriptor * computePassDesc )

◆ wgpu_command_encoder_begin_render_pass()

WGpuRenderPassEncoder wgpu_command_encoder_begin_render_pass ( WGpuCommandEncoder commandEncoder,
const WGpuRenderPassDescriptor * renderPassDesc )

◆ wgpu_command_encoder_begin_render_pass_1color_0depth()

WGpuRenderPassEncoder wgpu_command_encoder_begin_render_pass_1color_0depth ( WGpuCommandEncoder commandEncoder,
const WGpuRenderPassDescriptor * renderPassDesc )

◆ wgpu_command_encoder_clear_buffer()

void wgpu_command_encoder_clear_buffer ( WGpuCommandEncoder commandEncoder,
WGpuBuffer buffer,
double_int53_t offset,
double_int53_t size )

◆ wgpu_command_encoder_copy_buffer_to_buffer()

void wgpu_command_encoder_copy_buffer_to_buffer ( WGpuCommandEncoder commandEncoder,
WGpuBuffer source,
double_int53_t sourceOffset,
WGpuBuffer destination,
double_int53_t destinationOffset,
double_int53_t size )

◆ wgpu_command_encoder_copy_buffer_to_texture()

void wgpu_command_encoder_copy_buffer_to_texture ( WGpuCommandEncoder commandEncoder,
const WGpuImageCopyBuffer * source,
const WGpuImageCopyTexture * destination,
uint32_t copyWidth,
uint32_t copyHeight,
uint32_t copyDepthOrArrayLayers )

◆ wgpu_command_encoder_copy_texture_to_buffer()

void wgpu_command_encoder_copy_texture_to_buffer ( WGpuCommandEncoder commandEncoder,
const WGpuImageCopyTexture * source,
const WGpuImageCopyBuffer * destination,
uint32_t copyWidth,
uint32_t copyHeight,
uint32_t copyDepthOrArrayLayers )

◆ wgpu_command_encoder_copy_texture_to_texture()

void wgpu_command_encoder_copy_texture_to_texture ( WGpuCommandEncoder commandEncoder,
const WGpuImageCopyTexture * source,
const WGpuImageCopyTexture * destination,
uint32_t copyWidth,
uint32_t copyHeight,
uint32_t copyDepthOrArrayLayers )

◆ wgpu_command_encoder_resolve_query_set()

void wgpu_command_encoder_resolve_query_set ( WGpuCommandEncoder commandEncoder,
WGpuQuerySet querySet,
uint32_t firstQuery,
uint32_t queryCount,
WGpuBuffer destination,
double_int53_t destinationOffset )

◆ wgpu_command_encoder_write_timestamp()

void wgpu_command_encoder_write_timestamp ( WGpuCommandEncoder commandEncoder,
WGpuQuerySet querySet,
uint32_t queryIndex )

◆ wgpu_compute_pass_encoder_dispatch_workgroups()

void wgpu_compute_pass_encoder_dispatch_workgroups ( WGpuComputePassEncoder encoder,
uint32_t workgroupCountX,
uint32_t workgroupCountY,
uint32_t workgroupCountZ )

◆ wgpu_compute_pass_encoder_dispatch_workgroups_indirect()

void wgpu_compute_pass_encoder_dispatch_workgroups_indirect ( WGpuComputePassEncoder encoder,
WGpuBuffer indirectBuffer,
double_int53_t indirectOffset )

◆ wgpu_destroy_all_objects()

void wgpu_destroy_all_objects ( void )

◆ wgpu_device_create_bind_group()

WGpuBindGroup wgpu_device_create_bind_group ( WGpuDevice device,
WGpuBindGroupLayout bindGroupLayout,
const WGpuBindGroupEntry * entries,
int numEntries )

◆ wgpu_device_create_bind_group_layout()

WGpuBindGroupLayout wgpu_device_create_bind_group_layout ( WGpuDevice device,
const WGpuBindGroupLayoutEntry * bindGroupLayoutEntries,
int numEntries )

◆ wgpu_device_create_buffer()

WGpuBuffer wgpu_device_create_buffer ( WGpuDevice device,
const WGpuBufferDescriptor * bufferDesc )

◆ wgpu_device_create_command_encoder()

WGpuCommandEncoder wgpu_device_create_command_encoder ( WGpuDevice device,
const WGpuCommandEncoderDescriptor * commandEncoderDesc )

◆ wgpu_device_create_command_encoder_simple()

WGpuCommandEncoder wgpu_device_create_command_encoder_simple ( WGpuDevice device)

◆ wgpu_device_create_compute_pipeline()

WGpuComputePipeline wgpu_device_create_compute_pipeline ( WGpuDevice device,
WGpuShaderModule computeModule,
const char * entryPoint,
WGpuPipelineLayout layout,
const WGpuPipelineConstant * constants,
int numConstants )

◆ wgpu_device_create_compute_pipeline_async()

void wgpu_device_create_compute_pipeline_async ( WGpuDevice device,
WGpuShaderModule computeModule,
const char * entryPoint,
WGpuPipelineLayout layout,
const WGpuPipelineConstant * constants,
int numConstants,
WGpuCreatePipelineCallback callback,
void * userData )

◆ wgpu_device_create_pipeline_layout()

WGpuPipelineLayout wgpu_device_create_pipeline_layout ( WGpuDevice device,
const WGpuBindGroupLayout * bindGroupLayouts,
int numLayouts )

◆ wgpu_device_create_query_set()

WGpuQuerySet wgpu_device_create_query_set ( WGpuDevice device,
const WGpuQuerySetDescriptor * querySetDesc )

◆ wgpu_device_create_render_bundle_encoder()

WGpuRenderBundleEncoder wgpu_device_create_render_bundle_encoder ( WGpuDevice device,
const WGpuRenderBundleEncoderDescriptor * renderBundleEncoderDesc )

◆ wgpu_device_create_render_pipeline()

WGpuRenderPipeline wgpu_device_create_render_pipeline ( WGpuDevice device,
const WGpuRenderPipelineDescriptor * renderPipelineDesc )

◆ wgpu_device_create_render_pipeline_async()

void wgpu_device_create_render_pipeline_async ( WGpuDevice device,
const WGpuRenderPipelineDescriptor * renderPipelineDesc,
WGpuCreatePipelineCallback callback,
void * userData )

◆ wgpu_device_create_sampler()

WGpuSampler wgpu_device_create_sampler ( WGpuDevice device,
const WGpuSamplerDescriptor * samplerDesc )

◆ wgpu_device_create_shader_module()

WGpuShaderModule wgpu_device_create_shader_module ( WGpuDevice device,
const WGpuShaderModuleDescriptor * shaderModuleDesc )

◆ wgpu_device_create_texture()

WGpuTexture wgpu_device_create_texture ( WGpuDevice device,
const WGpuTextureDescriptor * textureDesc )

◆ wgpu_device_get_queue()

WGpuQueue wgpu_device_get_queue ( WGpuDevice device)

◆ wgpu_device_import_external_texture()

WGpuExternalTexture wgpu_device_import_external_texture ( WGpuDevice device,
const WGpuExternalTextureDescriptor * externalTextureDesc )

◆ wgpu_device_pop_error_scope_async()

void wgpu_device_pop_error_scope_async ( WGpuDevice device,
WGpuDeviceErrorCallback callback,
void * userData )

◆ wgpu_device_push_error_scope()

void wgpu_device_push_error_scope ( WGpuDevice device,
WGPU_ERROR_FILTER filter )

◆ wgpu_device_set_lost_callback()

void wgpu_device_set_lost_callback ( WGpuDevice device,
WGpuDeviceLostCallback callback,
void * userData )

◆ wgpu_device_set_uncapturederror_callback()

void wgpu_device_set_uncapturederror_callback ( WGpuDevice device,
WGpuDeviceErrorCallback callback,
void * userData )

◆ wgpu_device_tick()

void wgpu_device_tick ( WGpuDevice device)

◆ wgpu_encoder_end()

void wgpu_encoder_end ( WGpuBindingCommandsMixin encoder)

◆ wgpu_encoder_finish()

WGpuCommandBuffer wgpu_encoder_finish ( WGpuObjectBase commandOrRenderBundleEncoder)

◆ wgpu_encoder_insert_debug_marker()

void wgpu_encoder_insert_debug_marker ( WGpuDebugCommandsMixin encoder,
const char * markerLabel )

◆ wgpu_encoder_pop_debug_group()

void wgpu_encoder_pop_debug_group ( WGpuDebugCommandsMixin encoder)

◆ wgpu_encoder_push_debug_group()

void wgpu_encoder_push_debug_group ( WGpuDebugCommandsMixin encoder,
const char * groupLabel )

◆ wgpu_encoder_set_bind_group()

void wgpu_encoder_set_bind_group ( WGpuBindingCommandsMixin encoder,
uint32_t index,
WGpuBindGroup bindGroup,
const uint32_t * dynamicOffsets,
uint32_t numDynamicOffsets )

◆ wgpu_encoder_set_pipeline()

void wgpu_encoder_set_pipeline ( WGpuBindingCommandsMixin encoder,
WGpuObjectBase pipeline )

◆ wgpu_get_num_live_objects()

uint32_t wgpu_get_num_live_objects ( void )

◆ wgpu_is_adapter()

EM_BOOL wgpu_is_adapter ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_bind_group()

EM_BOOL wgpu_is_bind_group ( WGpuObjectBase object)

◆ wgpu_is_bind_group_layout()

EM_BOOL wgpu_is_bind_group_layout ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_binding_commands_mixin()

EM_BOOL wgpu_is_binding_commands_mixin ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_buffer()

EM_BOOL wgpu_is_buffer ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_canvas_context()

EM_BOOL wgpu_is_canvas_context ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_command_buffer()

EM_BOOL wgpu_is_command_buffer ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_command_encoder()

EM_BOOL wgpu_is_command_encoder ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_compute_pass_encoder()

EM_BOOL wgpu_is_compute_pass_encoder ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_compute_pipeline()

EM_BOOL wgpu_is_compute_pipeline ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_device()

EM_BOOL wgpu_is_device ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_external_texture()

EM_BOOL wgpu_is_external_texture ( WGpuObjectBase object)

◆ wgpu_is_pipeline_layout()

EM_BOOL wgpu_is_pipeline_layout ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_query_set()

EM_BOOL wgpu_is_query_set ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_queue()

EM_BOOL wgpu_is_queue ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_render_bundle()

EM_BOOL wgpu_is_render_bundle ( WGpuObjectBase object)

◆ wgpu_is_render_bundle_encoder()

EM_BOOL wgpu_is_render_bundle_encoder ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_render_commands_mixin()

EM_BOOL wgpu_is_render_commands_mixin ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_render_pass_encoder()

EM_BOOL wgpu_is_render_pass_encoder ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_render_pipeline()

EM_BOOL wgpu_is_render_pipeline ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_sampler()

EM_BOOL wgpu_is_sampler ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_shader_module()

EM_BOOL wgpu_is_shader_module ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_texture()

EM_BOOL wgpu_is_texture ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_texture_view()

EM_BOOL wgpu_is_texture_view ( WGpuObjectBase object)
Here is the caller graph for this function:

◆ wgpu_is_valid_object()

EM_BOOL wgpu_is_valid_object ( WGpuObjectBase obj)

◆ wgpu_load_image_bitmap_from_url_async()

void wgpu_load_image_bitmap_from_url_async ( const char * url,
EM_BOOL flipY,
WGpuLoadImageBitmapCallback callback,
void * userData )

◆ wgpu_object_destroy()

void wgpu_object_destroy ( WGpuObjectBase wgpuObject)
Here is the caller graph for this function:

◆ wgpu_object_get_label()

int wgpu_object_get_label ( WGpuObjectBase obj,
char * dstLabel,
uint32_t dstLabelSize )

◆ wgpu_object_set_label()

void wgpu_object_set_label ( WGpuObjectBase objBase,
const char * label )

◆ wgpu_pipeline_get_bind_group_layout()

WGpuBindGroupLayout wgpu_pipeline_get_bind_group_layout ( WGpuObjectBase pipelineBase,
uint32_t index )

◆ wgpu_query_set_count()

uint32_t wgpu_query_set_count ( WGpuQuerySet querySet)

◆ wgpu_query_set_type()

WGPU_QUERY_TYPE wgpu_query_set_type ( WGpuQuerySet querySet)

◆ wgpu_queue_copy_external_image_to_texture()

void wgpu_queue_copy_external_image_to_texture ( WGpuQueue queue,
const WGpuImageCopyExternalImage * source,
const WGpuImageCopyTextureTagged * destination,
uint32_t copyWidth,
uint32_t copyHeight,
uint32_t copyDepthOrArrayLayers )

◆ wgpu_queue_set_on_submitted_work_done_callback()

void wgpu_queue_set_on_submitted_work_done_callback ( WGpuQueue queue,
WGpuOnSubmittedWorkDoneCallback callback,
void * userData )

◆ wgpu_queue_submit_multiple_and_destroy()

void wgpu_queue_submit_multiple_and_destroy ( WGpuQueue queue,
const WGpuCommandBuffer * commandBuffers,
int numCommandBuffers )

◆ wgpu_queue_submit_one_and_destroy()

void wgpu_queue_submit_one_and_destroy ( WGpuQueue queue,
WGpuCommandBuffer commandBuffer )

◆ wgpu_queue_write_buffer()

void wgpu_queue_write_buffer ( WGpuQueue queue,
WGpuBuffer buffer,
double_int53_t bufferOffset,
const void * data,
double_int53_t size )

◆ wgpu_queue_write_texture()

void wgpu_queue_write_texture ( WGpuQueue queue,
const WGpuImageCopyTexture * destination,
const void * data,
uint32_t bytesPerBlockRow,
uint32_t blockRowsPerImage,
uint32_t writeWidth,
uint32_t writeHeight,
uint32_t writeDepthOrArrayLayers )

◆ wgpu_render_commands_mixin_draw()

void wgpu_render_commands_mixin_draw ( WGpuRenderCommandsMixin renderCommandsMixin,
uint32_t vertexCount,
uint32_t instanceCount,
uint32_t firstVertex,
uint32_t firstInstance )

◆ wgpu_render_commands_mixin_draw_indexed()

void wgpu_render_commands_mixin_draw_indexed ( WGpuRenderCommandsMixin renderCommandsMixin,
uint32_t indexCount,
uint32_t instanceCount,
uint32_t firstVertex,
int32_t baseVertex,
uint32_t firstInstance )

◆ wgpu_render_commands_mixin_draw_indexed_indirect()

void wgpu_render_commands_mixin_draw_indexed_indirect ( WGpuRenderCommandsMixin renderCommandsMixin,
WGpuBuffer indirectBuffer,
double_int53_t indirectOffset )

◆ wgpu_render_commands_mixin_draw_indirect()

void wgpu_render_commands_mixin_draw_indirect ( WGpuRenderCommandsMixin renderCommandsMixin,
WGpuBuffer indirectBuffer,
double_int53_t indirectOffset )

◆ wgpu_render_commands_mixin_set_index_buffer()

void wgpu_render_commands_mixin_set_index_buffer ( WGpuRenderCommandsMixin renderCommandsMixin,
WGpuBuffer buffer,
WGPU_INDEX_FORMAT indexFormat,
double_int53_t offset,
double_int53_t size )

◆ wgpu_render_commands_mixin_set_vertex_buffer()

void wgpu_render_commands_mixin_set_vertex_buffer ( WGpuRenderCommandsMixin renderCommandsMixin,
int32_t slot,
WGpuBuffer buffer,
double_int53_t offset,
double_int53_t size )

◆ wgpu_render_pass_encoder_begin_occlusion_query()

void wgpu_render_pass_encoder_begin_occlusion_query ( WGpuRenderPassEncoder encoder,
int32_t queryIndex )

◆ wgpu_render_pass_encoder_end_occlusion_query()

void wgpu_render_pass_encoder_end_occlusion_query ( WGpuRenderPassEncoder encoder)

◆ wgpu_render_pass_encoder_execute_bundles()

void wgpu_render_pass_encoder_execute_bundles ( WGpuRenderPassEncoder encoder,
const WGpuRenderBundle * bundles,
int numBundles )

◆ wgpu_render_pass_encoder_set_blend_constant()

void wgpu_render_pass_encoder_set_blend_constant ( WGpuRenderPassEncoder encoder,
double r,
double g,
double b,
double a )

◆ wgpu_render_pass_encoder_set_scissor_rect()

void wgpu_render_pass_encoder_set_scissor_rect ( WGpuRenderPassEncoder encoder,
uint32_t x,
uint32_t y,
uint32_t width,
uint32_t height )

◆ wgpu_render_pass_encoder_set_stencil_reference()

void wgpu_render_pass_encoder_set_stencil_reference ( WGpuRenderPassEncoder encoder,
uint32_t stencilValue )

◆ wgpu_render_pass_encoder_set_viewport()

void wgpu_render_pass_encoder_set_viewport ( WGpuRenderPassEncoder encoder,
float x,
float y,
float width,
float height,
float minDepth,
float maxDepth )

◆ wgpu_shader_module_get_compilation_info_async()

void wgpu_shader_module_get_compilation_info_async ( WGpuShaderModule shaderModule,
WGpuGetCompilationInfoCallback callback,
void * userData )

◆ wgpu_texture_create_view()

WGpuTextureView wgpu_texture_create_view ( WGpuTexture texture,
const WGpuTextureViewDescriptor * textureViewDesc )

◆ wgpu_texture_create_view_simple()

WGpuTextureView wgpu_texture_create_view_simple ( WGpuTexture texture)

◆ wgpu_texture_depth_or_array_layers()

uint32_t wgpu_texture_depth_or_array_layers ( WGpuTexture texture)

◆ wgpu_texture_dimension()

WGPU_TEXTURE_DIMENSION wgpu_texture_dimension ( WGpuTexture texture)

◆ wgpu_texture_format()

WGPU_TEXTURE_FORMAT wgpu_texture_format ( WGpuTexture texture)

◆ wgpu_texture_height()

uint32_t wgpu_texture_height ( WGpuTexture texture)

◆ wgpu_texture_mip_level_count()

uint32_t wgpu_texture_mip_level_count ( WGpuTexture texture)

◆ wgpu_texture_sample_count()

uint32_t wgpu_texture_sample_count ( WGpuTexture texture)

◆ wgpu_texture_usage()

WGPU_TEXTURE_USAGE_FLAGS wgpu_texture_usage ( WGpuTexture texture)

◆ wgpu_texture_width()

uint32_t wgpu_texture_width ( WGpuTexture texture)