#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/webgpu/gpu_render_pass_encoder.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_gpu_index_format.h"
#include "third_party/blink/renderer/modules/webgpu/dawn_conversions.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_bind_group.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_buffer.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_device.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_query_set.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_render_bundle.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_render_pipeline.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_supported_features.h"
namespace blink {
GPURenderPassEncoder::GPURenderPassEncoder(
GPUDevice* device,
wgpu::RenderPassEncoder render_pass_encoder,
const String& label)
: … { … }
void GPURenderPassEncoder::setBindGroup(
uint32_t index,
GPUBindGroup* bindGroup,
const Vector<uint32_t>& dynamicOffsets) { … }
void GPURenderPassEncoder::setBindGroup(
uint32_t index,
GPUBindGroup* bind_group,
base::span<const uint32_t> dynamic_offsets_data,
uint64_t dynamic_offsets_data_start,
uint32_t dynamic_offsets_data_length,
ExceptionState& exception_state) { … }
void GPURenderPassEncoder::setBlendConstant(const V8GPUColor* color,
ExceptionState& exception_state) { … }
void GPURenderPassEncoder::executeBundles(
const HeapVector<Member<GPURenderBundle>>& bundles) { … }
void GPURenderPassEncoder::writeTimestamp(
const DawnObject<wgpu::QuerySet>* querySet,
uint32_t queryIndex,
ExceptionState& exception_state) { … }
}