Skip to content

Commit b0145d1

Browse files
authored
Update Renderer.h
1 parent 99823ee commit b0145d1

File tree

1 file changed

+13
-4
lines changed
  • src/04-cross-platform-hello-triangle/src

1 file changed

+13
-4
lines changed

src/04-cross-platform-hello-triangle/src/Renderer.h

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,25 +320,34 @@ class Renderer
320320
GLint mColorAttrib;
321321

322322
#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
324324
void* mDevice;
325-
325+
//CAMetalLayer
326326
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
328328
void* mCommandQueue;
329-
330329
// The current size of our view so we can use this in our render pipeline
331330
unsigned mViewportSize[2];
332331

333332
//Resources
333+
334+
//MTLLibrary
334335
void* vertLibrary;
336+
//MTLLibrary
335337
void* fragLibrary;
338+
//MTLFunction
336339
void* vertexFunction;
340+
//MTLFunction
337341
void* fragmentFunction;
342+
//MTLBuffer
338343
void* mVertexBuffer;
344+
//MTLBuffer
339345
void* mIndexBuffer;
346+
//MTLBuffer
340347
void* mUniformBuffer;
348+
//MTLRenderPipelineState
341349
void* mPipelineState;
350+
//MTLCommandBuffer
342351
void* mCommandBuffer;
343352

344353
#endif

0 commit comments

Comments
 (0)