/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testviewport.c | 28 SDL_Rect viewport; variable 44 DrawOnViewport(SDL_Renderer * renderer, SDL_Rect viewport) in DrawOnViewport() argument 49 SDL_RenderSetViewport(renderer, &viewport); in DrawOnViewport() 57 SDL_RenderDrawPoint(renderer, viewport.h/2 + 10, viewport.w/2); in DrawOnViewport() 58 SDL_RenderDrawPoint(renderer, viewport.h/2 - 10, viewport.w/2); in DrawOnViewport() 59 SDL_RenderDrawPoint(renderer, viewport.h/2 , viewport.w/2 - 10); in DrawOnViewport() 60 SDL_RenderDrawPoint(renderer, viewport.h/2 , viewport.w/2 + 10); in DrawOnViewport() 64 SDL_RenderDrawLine(renderer, 1, 0, viewport.w-2, 0); in DrawOnViewport() 65 SDL_RenderDrawLine(renderer, 1, viewport.h-1, viewport.w-2, viewport.h-1); in DrawOnViewport() 66 SDL_RenderDrawLine(renderer, 0, 1, 0, viewport.h-2); in DrawOnViewport() [all …]
|
D | testdraw2.c | 43 SDL_Rect viewport; in DrawPoints() local 46 SDL_RenderGetViewport(renderer, &viewport); in DrawPoints() 75 x = rand() % viewport.w; in DrawPoints() 76 y = rand() % viewport.h; in DrawPoints() 86 SDL_Rect viewport; in DrawLines() local 89 SDL_RenderGetViewport(renderer, &viewport); in DrawLines() 119 SDL_RenderDrawLine(renderer, 0, 0, viewport.w - 1, viewport.h - 1); in DrawLines() 120 SDL_RenderDrawLine(renderer, 0, viewport.h - 1, viewport.w - 1, 0); in DrawLines() 121 SDL_RenderDrawLine(renderer, 0, viewport.h / 2, viewport.w - 1, viewport.h / 2); in DrawLines() 122 SDL_RenderDrawLine(renderer, viewport.w / 2, 0, viewport.w / 2, viewport.h - 1); in DrawLines() [all …]
|
D | testrelative.c | 52 SDL_Rect viewport; in loop() local 60 SDL_RenderGetViewport(renderer, &viewport); in loop() 61 if (rect.x < viewport.x) rect.x += viewport.w; in loop() 62 if (rect.y < viewport.y) rect.y += viewport.h; in loop() 63 if (rect.x > viewport.x + viewport.w) rect.x -= viewport.w; in loop() 64 if (rect.y > viewport.y + viewport.h) rect.y -= viewport.h; in loop()
|
D | testsprite2.c | 114 SDL_Rect viewport, temp; in MoveSprites() local 118 SDL_RenderGetViewport(renderer, &viewport); in MoveSprites() 154 SDL_RenderDrawPoint(renderer, viewport.w-1, 0); in MoveSprites() 155 SDL_RenderDrawPoint(renderer, 0, viewport.h-1); in MoveSprites() 156 SDL_RenderDrawPoint(renderer, viewport.w-1, viewport.h-1); in MoveSprites() 160 SDL_RenderDrawLine(renderer, 1, 0, viewport.w-2, 0); in MoveSprites() 161 SDL_RenderDrawLine(renderer, 1, viewport.h-1, viewport.w-2, viewport.h-1); in MoveSprites() 162 SDL_RenderDrawLine(renderer, 0, 1, 0, viewport.h-2); in MoveSprites() 163 SDL_RenderDrawLine(renderer, viewport.w-1, 1, viewport.w-1, viewport.h-2); in MoveSprites() 173 temp.x = viewport.w-sprite_w-1; in MoveSprites() [all …]
|
D | testrendertarget.c | 101 SDL_Rect viewport, R; in DrawComposite() local 132 SDL_RenderGetViewport(s->renderer, &viewport); in DrawComposite() 134 …teTexture(s->renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, viewport.w, viewport.h); in DrawComposite() 148 if (s->sprite_rect.w >= viewport.w || s->sprite_rect.h >= viewport.h) { in DrawComposite() 156 s->sprite_rect.x = (viewport.w - s->sprite_rect.w) / 2; in DrawComposite() 157 s->sprite_rect.y = (viewport.h - s->sprite_rect.h) / 2; in DrawComposite() 184 SDL_Rect viewport; in Draw() local 187 SDL_RenderGetViewport(s->renderer, &viewport); in Draw() 189 …teTexture(s->renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, viewport.w, viewport.h); in Draw() 203 if (s->sprite_rect.w >= viewport.w || s->sprite_rect.h >= viewport.h) { in Draw() [all …]
|
D | testintersections.c | 45 SDL_Rect viewport; in DrawPoints() local 48 SDL_RenderGetViewport(renderer, &viewport); in DrawPoints() 77 x = rand() % viewport.w; in DrawPoints() 78 y = rand() % viewport.h; in DrawPoints() 108 SDL_Rect viewport; in DrawLines() local 111 SDL_RenderGetViewport(renderer, &viewport); in DrawLines() 117 SDL_RenderDrawLine(renderer, 0, 0, viewport.w - 1, viewport.h - 1); in DrawLines() 118 SDL_RenderDrawLine(renderer, 0, viewport.h - 1, viewport.w - 1, 0); in DrawLines() 119 SDL_RenderDrawLine(renderer, 0, viewport.h / 2, viewport.w - 1, viewport.h / 2); in DrawLines() 120 SDL_RenderDrawLine(renderer, viewport.w / 2, 0, viewport.w / 2, viewport.h - 1); in DrawLines()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | ViewportTests.cpp | 92 ViewportParams viewport; member 126 ViewportParams viewport = info.viewport; in DoTest() local 127 renderPass1.SetViewport(viewport.x, viewport.y, viewport.width, viewport.height, in DoTest() 128 viewport.minDepth, viewport.maxDepth); in DoTest() 184 ViewportParams viewport = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; in TEST_P() local 185 TestInfo info = {viewport, TopLeftTriangleColor, BottomRightTriangleColor, 1.0, false}; in TEST_P() 192 ViewportParams viewport = {0.0, 0.0, 4.0, 4.0, 0.0, 1.0}; in TEST_P() local 193 TestInfo info = {viewport, TopLeftTriangleColor, BottomRightTriangleColor}; in TEST_P() 201 ViewportParams viewport = {-2.0, -2.0, 4.0, 4.0, 0.0, 1.0}; in TEST_P() local 202 TestInfo info = {viewport, BottomRightTriangleColor, BackgroundColor}; in TEST_P() [all …]
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_cs.c | 35 panvk_sysval_upload_viewport_scale(const VkViewport *viewport, in panvk_sysval_upload_viewport_scale() argument 38 data->f32[0] = 0.5f * viewport->width; in panvk_sysval_upload_viewport_scale() 39 data->f32[1] = 0.5f * viewport->height; in panvk_sysval_upload_viewport_scale() 40 data->f32[2] = 0.5f * (viewport->maxDepth - viewport->minDepth); in panvk_sysval_upload_viewport_scale() 44 panvk_sysval_upload_viewport_offset(const VkViewport *viewport, in panvk_sysval_upload_viewport_offset() argument 47 data->f32[0] = (0.5f * viewport->width) + viewport->x; in panvk_sysval_upload_viewport_offset() 48 data->f32[1] = (0.5f * viewport->height) + viewport->y; in panvk_sysval_upload_viewport_offset() 49 data->f32[2] = (0.5f * (viewport->maxDepth - viewport->minDepth)) + viewport->minDepth; in panvk_sysval_upload_viewport_offset()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fTextureFormatTests.cpp | 142 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local 143 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 144 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 170 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 189 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 318 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local 319 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 320 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 342 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 357 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace() [all …]
|
D | es2fTextureSizeTests.cpp | 122 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local 123 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 124 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 140 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 157 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 270 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local 271 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 272 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 291 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 304 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
|
D | es2fTextureWrapTests.cpp | 173 …RandomViewport viewport (m_renderCtx.getRenderTarget(), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, deStr… in iterate() local 174 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 175 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 178 int leftWidth = viewport.width / 2; in iterate() 179 int rightWidth = viewport.width - leftWidth; in iterate() 212 gl.viewport(viewport.x, viewport.y, leftWidth, viewport.height); in iterate() 217 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 219 …(referenceFrame, m_renderCtx.getRenderTarget().getPixelFormat(), 0, 0, leftWidth, viewport.height), in iterate() 225 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, viewport.height); in iterate() 230 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fTextureFormatTests.cpp | 182 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local 183 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 184 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 210 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 229 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 377 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local 378 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 379 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 401 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 416 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace() [all …]
|
D | es3fTextureSizeTests.cpp | 123 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local 124 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 125 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 141 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 158 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 271 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local 272 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 273 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 292 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 305 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/ |
D | ARB_viewport_array.txt | 60 pipeline before rasterization is the viewport transformation. This stage 64 single viewport per context. In order to draw primitives into multiple 65 viewports, the OpenGL viewport may be changed between several draw calls. 70 render targets share the same, global OpenGL viewport. 73 viewports. Each viewport is specified as a rectangle. The destination 74 viewport may be selected per-primitive by the geometry shader. This allows 76 for separate viewport rectangles on the same surface. Additionally, when 78 viewport rectangle to be selected for each. This extension also exposes a 79 separate scissor rectangle for each viewport. Finally, the viewport bounds 81 applied during the viewport transform. [all …]
|
/third_party/openGLES/extensions/ARB/ |
D | ARB_viewport_array.txt | 70 pipeline before rasterization is the viewport transformation. This stage 74 single viewport per context. In order to draw primitives into multiple 75 viewports, the OpenGL viewport may be changed between several draw calls. 80 render targets share the same, global OpenGL viewport. 83 viewports. Each viewport is specified as a rectangle. The destination 84 viewport may be selected per-primitive by the geometry shader. This allows 86 for separate viewport rectangles on the same surface. Additionally, when 88 viewport rectangle to be selected for each. This extension also exposes a 89 separate scissor rectangle for each viewport. Finally, the viewport bounds 91 applied during the viewport transform. [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsScissorTests.cpp | 192 virtual void render (GLuint program, const IVec4& viewport) const = 0; 221 const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName())); in iterate() local 222 const IVec4 relScissorArea (int(m_scissorArea.x() * (float)viewport.width), in iterate() 223 int(m_scissorArea.y() * (float)viewport.height), in iterate() 224 int(m_scissorArea.z() * (float)viewport.width), in iterate() 225 int(m_scissorArea.w() * (float)viewport.height)); in iterate() 226 const IVec4 absScissorArea (relScissorArea.x() + viewport.x, in iterate() 227 relScissorArea.y() + viewport.y, in iterate() 231 tcu::Surface refImage (viewport.width, viewport.height); in iterate() 232 tcu::Surface resImage (viewport.width, viewport.height); in iterate() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_viewport.c | 58 float *scale = st->state.viewport[i].scale; in st_update_viewport() 59 float *translate = st->state.viewport[i].translate; in st_update_viewport() 70 … st->state.viewport[i].swizzle_x = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleX); in st_update_viewport() 71 … st->state.viewport[i].swizzle_y = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleY); in st_update_viewport() 72 … st->state.viewport[i].swizzle_z = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleZ); in st_update_viewport() 73 … st->state.viewport[i].swizzle_w = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleW); in st_update_viewport() 76 cso_set_viewport(st->cso_context, &st->state.viewport[0]); in st_update_viewport() 82 &st->state.viewport[1]); in st_update_viewport()
|
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
D | es2aTextureFilteringTests.cpp | 200 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 201 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 202 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 209 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 213 int leftWidth = viewport.width / 2; in iterate() 214 int rightWidth = viewport.width - leftWidth; in iterate() 215 int bottomHeight = viewport.height / 2; in iterate() 216 int topHeight = viewport.height - bottomHeight; in iterate() 239 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate() 250 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate() [all …]
|
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
D | es3aTextureFilteringTests.cpp | 190 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 191 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 192 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 199 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 203 int leftWidth = viewport.width / 2; in iterate() 204 int rightWidth = viewport.width - leftWidth; in iterate() 205 int bottomHeight = viewport.height / 2; in iterate() 206 int topHeight = viewport.height - bottomHeight; in iterate() 229 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate() 240 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate() [all …]
|
/third_party/openGLES/extensions/NV/ |
D | NV_viewport_array.txt | 55 pipeline before rasterization is the viewport transformation. This stage 59 single viewport per context. In order to draw primitives into multiple 60 viewports, the OpenGL viewport may be changed between several draw calls. 65 targets share the same, global OpenGL viewport. 68 viewports. Each viewport is specified as a rectangle. The destination 69 viewport may be selected per-primitive by the geometry shader. This allows 71 for separate viewport rectangles on the same surface. Additionally, when 73 viewport rectangle to be selected for each. This extension also exposes a 74 separate scissor rectangle for each viewport. Finally, the viewport bounds 76 applied during the viewport transform. [all …]
|
D | NV_viewport_array2.txt | 56 to control whether the effective viewport index is added into gl_Layer. 63 actual viewport index or mask and render target layer values are taken 86 gl_Layer hold the viewport index/mask and render target layer, as described 92 gl_Layer hold the viewport index/mask and render target layer, as described 98 gl_Layer hold the viewport index/mask and render target layer, as described 106 gl_Layer hold the viewport index/mask and render target layer, as described 125 single viewport) or gl_ViewportMask[] (selecting multiple viewports). 131 viewport index/mask is implementation-dependent and thus portable 132 applications will assign the same layer and viewport index for all 147 The layer selection may be made a function of the viewport index, as [all …]
|
D | NV_viewport_swizzle.txt | 44 This extension provides a new per-viewport swizzle that can modify the 45 position of primitives sent to each viewport. New viewport swizzle state 46 is added for each viewport, and a new position vector is computed for each 50 This new viewport swizzle is useful for a number of algorithms, including 53 rasterization. The per-viewport component remapping and negation provided 96 viewport swizzling and viewport mask expansion, flatshading, and 102 Each primitive sent to a given viewport has a swizzle and optional 104 depends on the viewport index, and is controlled by the command 110 The viewport specified by <index> has its x,y,z,w swizzle state set to the 144 swizzled using the state of the selected viewport. ... [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/ |
D | NV_viewport_array.txt | 55 pipeline before rasterization is the viewport transformation. This stage 59 single viewport per context. In order to draw primitives into multiple 60 viewports, the OpenGL viewport may be changed between several draw calls. 65 targets share the same, global OpenGL viewport. 68 viewports. Each viewport is specified as a rectangle. The destination 69 viewport may be selected per-primitive by the geometry shader. This allows 71 for separate viewport rectangles on the same surface. Additionally, when 73 viewport rectangle to be selected for each. This extension also exposes a 74 separate scissor rectangle for each viewport. Finally, the viewport bounds 76 applied during the viewport transform. [all …]
|
D | NV_viewport_array2.txt | 56 to control whether the effective viewport index is added into gl_Layer. 63 actual viewport index or mask and render target layer values are taken 86 gl_Layer hold the viewport index/mask and render target layer, as described 92 gl_Layer hold the viewport index/mask and render target layer, as described 98 gl_Layer hold the viewport index/mask and render target layer, as described 106 gl_Layer hold the viewport index/mask and render target layer, as described 125 single viewport) or gl_ViewportMask[] (selecting multiple viewports). 131 viewport index/mask is implementation-dependent and thus portable 132 applications will assign the same layer and viewport index for all 147 The layer selection may be made a function of the viewport index, as [all …]
|
D | NV_viewport_swizzle.txt | 44 This extension provides a new per-viewport swizzle that can modify the 45 position of primitives sent to each viewport. New viewport swizzle state 46 is added for each viewport, and a new position vector is computed for each 50 This new viewport swizzle is useful for a number of algorithms, including 53 rasterization. The per-viewport component remapping and negation provided 96 viewport swizzling and viewport mask expansion, flatshading, and 102 Each primitive sent to a given viewport has a swizzle and optional 104 depends on the viewport index, and is controlled by the command 110 The viewport specified by <index> has its x,y,z,w swizzle state set to the 144 swizzled using the state of the selected viewport. ... [all …]
|