1
votes

Is there a way to retrieve sizes of Frame Buffer & buffers passed in Metal fragment shader, or we need to manually pass them as arguments? I wish to retrieve the width and height of Frame Buffer texture to which results are being written as well as length of other MTLBuffers ([[buffer(0)]], [[buffer(1)]],...) passed to the fragment shader.

1

1 Answers

0
votes

That information is not automatically available. You have to pass it in as arguments.