#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_command_encoder.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_buffer.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_command_buffer.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_command_buffer_descriptor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_compute_pass_descriptor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_compute_pass_encoder.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_extent_3d_dict.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_image_copy_buffer.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_image_copy_texture.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_query_set.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_render_pass_descriptor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_render_pass_encoder.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_gpuextent3ddict_unsignedlongenforcerangesequence.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_buffer.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_command_buffer.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_command_encoder.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_compute_pass_encoder.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_query_set.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_render_pass_encoder.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/idl_member_installer.h"
#include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/bindings/wrapper_type_info.h"
namespace blink {
bool V8GPUCommandEncoder::IsExposed(ExecutionContext* execution_context) { … }
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
#endif
const WrapperTypeInfo V8GPUCommandEncoder::wrapper_type_info_{ … };
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic pop
#endif
const WrapperTypeInfo& GPUCommandEncoder::wrapper_type_info_ = …;
static_assert …;
namespace {
namespace v8_gpu_command_encoder {
void LabelAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LabelAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BeginComputePassOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BeginRenderPassOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ClearBufferOperationNoAllocDirectCallArg3(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_buffer, uint64_t v8_arg2_offset, uint64_t v8_arg3_size, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void ClearBufferOperationNoAllocDirectCallArg2(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_buffer, uint64_t v8_arg2_offset, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void ClearBufferOperationNoAllocDirectCallArg1(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_buffer, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void ClearBufferOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CopyBufferToBufferOperationNoAllocDirectCallArg5(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_src, uint64_t v8_arg2_src_offset, v8::Local<v8::Value> v8_arg3_dst, uint64_t v8_arg4_dst_offset, uint64_t v8_arg5_size, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void CopyBufferToBufferOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CopyBufferToTextureOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CopyTextureToBufferOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CopyTextureToTextureOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FinishOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void InsertDebugMarkerOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PopDebugGroupOperationNoAllocDirectCallArg0(v8::Local<v8::Object> v8_arg0_receiver, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void PopDebugGroupOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PushDebugGroupOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ResolveQuerySetOperationNoAllocDirectCallArg5(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_query_set, uint32_t v8_arg2_first_query, uint32_t v8_arg3_query_count, v8::Local<v8::Value> v8_arg4_destination, uint64_t v8_arg5_destination_offset, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void ResolveQuerySetOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void WriteTimestampOperationNoAllocDirectCallArg2(v8::Local<v8::Object> v8_arg0_receiver, v8::Local<v8::Value> v8_arg1_query_set, uint32_t v8_arg2_query_index, v8::FastApiCallbackOptions& v8_arg_callback_options) { … }
void WriteTimestampOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_gpu_command_encoder;
}
void V8GPUCommandEncoder::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8GPUCommandEncoder::InstallUnconditionalProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8GPUCommandEncoder::InstallContextIndependentProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
}