File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
src/04-cross-platform-hello-triangle/src Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -320,25 +320,34 @@ class Renderer
320
320
GLint mColorAttrib ;
321
321
322
322
#elif defined(XGFX_METAL)
323
- // The device (aka GPU) we're using to render
323
+ // MTLDevice - The device (aka GPU) we're using to render
324
324
void * mDevice ;
325
-
325
+ // CAMetalLayer
326
326
void * mLayer ;
327
- // The command Queue from which we'll obtain command buffers
327
+ // MTLCommandQueue - The command Queue from which we'll obtain command buffers
328
328
void * mCommandQueue ;
329
-
330
329
// The current size of our view so we can use this in our render pipeline
331
330
unsigned mViewportSize [2 ];
332
331
333
332
// Resources
333
+
334
+ // MTLLibrary
334
335
void * vertLibrary;
336
+ // MTLLibrary
335
337
void * fragLibrary;
338
+ // MTLFunction
336
339
void * vertexFunction;
340
+ // MTLFunction
337
341
void * fragmentFunction;
342
+ // MTLBuffer
338
343
void * mVertexBuffer ;
344
+ // MTLBuffer
339
345
void * mIndexBuffer ;
346
+ // MTLBuffer
340
347
void * mUniformBuffer ;
348
+ // MTLRenderPipelineState
341
349
void * mPipelineState ;
350
+ // MTLCommandBuffer
342
351
void * mCommandBuffer ;
343
352
344
353
#endif
You can’t perform that action at this time.
0 commit comments