create OpenGL render pass descriptors (faked)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include "device/opengl_output_device.h"
|
#include "device/opengl_output_device.h"
|
||||||
#include "presentation_queue/opengl_presentation_queue.h"
|
#include "presentation_queue/opengl_presentation_queue.h"
|
||||||
#include "shaders/opengl_shader_module.h"
|
#include "shaders/opengl_shader_module.h"
|
||||||
|
#include "renderpass/opengl_render_pass_descriptor.h"
|
||||||
|
|
||||||
gnDeviceFunctions loadOpenGLDeviceFunctions() {
|
gnDeviceFunctions loadOpenGLDeviceFunctions() {
|
||||||
return (gnDeviceFunctions){
|
return (gnDeviceFunctions){
|
||||||
@@ -12,8 +13,8 @@ gnDeviceFunctions loadOpenGLDeviceFunctions() {
|
|||||||
._gnCreateShaderModule = openglCreateShaderModule,
|
._gnCreateShaderModule = openglCreateShaderModule,
|
||||||
._gnDestroyShaderModule = openglDestroyShaderModule,
|
._gnDestroyShaderModule = openglDestroyShaderModule,
|
||||||
|
|
||||||
._gnCreateRenderPassDescriptor = NULL,
|
._gnCreateRenderPassDescriptor = openglCreateRenderPass,
|
||||||
._gnDestroyRenderPassDescriptor = NULL,
|
._gnDestroyRenderPassDescriptor = openglDestroyRenderPass,
|
||||||
|
|
||||||
._gnCreateGraphicsPipeline = NULL,
|
._gnCreateGraphicsPipeline = NULL,
|
||||||
._gnDestroyGraphicsPipeline = NULL,
|
._gnDestroyGraphicsPipeline = NULL,
|
||||||
|
@@ -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) {}
|
@@ -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);
|
Reference in New Issue
Block a user