create OpenGL render pass descriptors (faked)

This commit is contained in:
Gregory Wells
2025-08-12 22:51:51 -04:00
parent 9d4dfd85fc
commit bb416aca61
3 changed files with 15 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#include "device/opengl_output_device.h"
#include "presentation_queue/opengl_presentation_queue.h"
#include "shaders/opengl_shader_module.h"
#include "renderpass/opengl_render_pass_descriptor.h"
gnDeviceFunctions loadOpenGLDeviceFunctions() {
return (gnDeviceFunctions){
@@ -12,8 +13,8 @@ gnDeviceFunctions loadOpenGLDeviceFunctions() {
._gnCreateShaderModule = openglCreateShaderModule,
._gnDestroyShaderModule = openglDestroyShaderModule,
._gnCreateRenderPassDescriptor = NULL,
._gnDestroyRenderPassDescriptor = NULL,
._gnCreateRenderPassDescriptor = openglCreateRenderPass,
._gnDestroyRenderPassDescriptor = openglDestroyRenderPass,
._gnCreateGraphicsPipeline = NULL,
._gnDestroyGraphicsPipeline = NULL,

View File

@@ -0,0 +1,6 @@
#include "opengl_render_pass_descriptor.h"
gnReturnCode openglCreateRenderPass(gnRenderPassDescriptor renderPass, gnDevice device, gnRenderPassDescriptorInfo info) {
return GN_SUCCESS;
}
void openglDestroyRenderPass(gnRenderPassDescriptor renderPass) {}

View File

@@ -0,0 +1,6 @@
#pragma once
#include "core/src/renderpass/gryphn_render_pass_descriptor.h"
typedef struct gnPlatformRenderPassDescriptor_t gnPlatformRenderPassDescriptor;
gnReturnCode openglCreateRenderPass(gnRenderPassDescriptor renderPass, gnDevice device, gnRenderPassDescriptorInfo info);
void openglDestroyRenderPass(gnRenderPassDescriptor renderPass);