( id api.CmdID, thread uint64, width, height uint32, fb FramebufferId, bufferIdx uint32, res replay.Result)
| 67 | } |
| 68 | |
| 69 | func (t *readFramebuffer) color( |
| 70 | id api.CmdID, |
| 71 | thread uint64, |
| 72 | width, height uint32, |
| 73 | fb FramebufferId, |
| 74 | bufferIdx uint32, |
| 75 | res replay.Result) { |
| 76 | |
| 77 | t.Add(id, func(ctx context.Context, out transform.Writer) { |
| 78 | attachment := GLenum_GL_COLOR_ATTACHMENT0 + GLenum(bufferIdx) |
| 79 | postFBData(ctx, id, thread, width, height, fb, attachment, t.targetVersion, out, res) |
| 80 | }) |
| 81 | } |
| 82 | |
| 83 | func postFBData(ctx context.Context, |
| 84 | id api.CmdID, |
no test coverage detected