Blender V5.0
GPU_compute.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
13
14#pragma once
15
16#include "BLI_sys_types.h"
17
18#include "GPU_shader.hh"
19#include "GPU_storage_buffer.hh"
20
28 uint groups_x_len,
29 uint groups_y_len,
30 uint groups_z_len,
31 const blender::gpu::shader::SpecializationConstants *constants_state = nullptr);
32
52 blender::gpu::StorageBuf *indirect_buf,
53 const blender::gpu::shader::SpecializationConstants *constants_state = nullptr);
unsigned int uint
void GPU_compute_dispatch(blender::gpu::Shader *shader, uint groups_x_len, uint groups_y_len, uint groups_z_len, const blender::gpu::shader::SpecializationConstants *constants_state=nullptr)
void GPU_compute_dispatch_indirect(blender::gpu::Shader *shader, blender::gpu::StorageBuf *indirect_buf_, const blender::gpu::shader::SpecializationConstants *constants_state)