Files
Pulse/Sources/Backends/OpenGL/OpenGLComputePipeline.h
2025-11-15 16:33:36 +01:00

28 lines
834 B
C

// Copyright (C) 2025 kbz_8
// This file is part of "Pulse"
// For conditions of distribution and use, see copyright notice in LICENSE
#ifdef PULSE_ENABLE_OPENGL_BACKEND
#ifndef PULSE_OPENGL_COMPUTE_PIPELINE_H_
#define PULSE_OPENGL_COMPUTE_PIPELINE_H_
#include <Pulse.h>
#include "OpenGL.h"
#include "OpenGLBindsGroup.h"
typedef struct OpenGLComputePipeline
{
GLuint program;
OpenGLBindsGroupLayout* readonly_group_layout;
OpenGLBindsGroupLayout* readwrite_group_layout;
OpenGLBindsGroupLayout* uniform_group_layout;
} OpenGLComputePipeline;
PulseComputePipeline OpenGLCreateComputePipeline(PulseDevice device, const PulseComputePipelineCreateInfo* info);
void OpenGLDestroyComputePipeline(PulseDevice device, PulseComputePipeline pipeline);
#endif // PULSE_OPENGL_COMPUTE_PIPELINE_H_
#endif // PULSE_ENABLE_OPENGL_BACKEND