get all the commands to work
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include "metal_render_pass.h"
|
||||
|
||||
gnReturnCode gnCreateRenderPassDescriptorFn(gnRenderPassDescriptor renderPass, gnOutputDevice device, gnRenderPassDescriptorInfo info) {
|
||||
gnReturnCode createMetalRenderPass(gnRenderPassDescriptor renderPass, gnDevice device, gnRenderPassDescriptorInfo info) {
|
||||
renderPass->renderPassDescriptor = malloc(sizeof(gnPlatformRenderPassDescriptor));
|
||||
renderPass->renderPassDescriptor->passDescriptor = [[MTLRenderPassDescriptor alloc] init];
|
||||
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
|
||||
void gnDestroyRenderPassDescriptorFn(struct gnRenderPassDescriptor_t* renderPass) {
|
||||
void destroyMetalRenderPass(gnRenderPassDescriptor renderPass) {
|
||||
[renderPass->renderPassDescriptor->passDescriptor release];
|
||||
free(renderPass->renderPassDescriptor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user