MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Fetch

Method Fetch

renderdoc/driver/gl/gl_renderstate.cpp:103–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void PixelPackState::Fetch(bool compressed)
104{
105 if(!IsGLES)
106 {
107 GL.glGetIntegerv(eGL_PACK_SWAP_BYTES, &swapBytes);
108 GL.glGetIntegerv(eGL_PACK_LSB_FIRST, &lsbFirst);
109 GL.glGetIntegerv(eGL_PACK_IMAGE_HEIGHT, &imageheight);
110 GL.glGetIntegerv(eGL_PACK_SKIP_IMAGES, &skipImages);
111 }
112 GL.glGetIntegerv(eGL_PACK_ROW_LENGTH, &rowlength);
113 GL.glGetIntegerv(eGL_PACK_SKIP_PIXELS, &skipPixels);
114 GL.glGetIntegerv(eGL_PACK_SKIP_ROWS, &skipRows);
115 GL.glGetIntegerv(eGL_PACK_ALIGNMENT, &alignment);
116
117 if(!IsGLES && compressed)
118 {
119 GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_WIDTH, &compressedBlockWidth);
120 GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_HEIGHT, &compressedBlockHeight);
121 GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_DEPTH, &compressedBlockDepth);
122 GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_SIZE, &compressedBlockSize);
123 }
124}
125
126void PixelPackState::Apply(bool compressed)
127{

Callers 15

FetchStateMethod · 0.80
GetTextureDataMethod · 0.80
SetProxyTextureDataMethod · 0.80
CreateDebugDataMethod · 0.80
Apply_InitialStateMethod · 0.80
glCopyImageSubDataMethod · 0.80

Calls 1

glGetIntegervMethod · 0.45

Tested by

no test coverage detected