Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 48) sorted by relevance

12

/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/VK_NV_clip_space_w_scaling/
Dvertexpostproc.adoc8 If viewport *W* scaling is enabled, the *W* component of the clip coordinate
9 is modified by the provided coefficients from the corresponding viewport as
14 …foNV',desc='Structure specifying parameters of a newly created pipeline viewport W scaling state',…
24 * pname:viewportWScalingEnable controls whether viewport *W* scaling is
27 must: match the number of viewports in the pipeline if viewport *W*
32 If the viewport *W* scaling state is dynamic, this member is ignored.
44 [open,refpage='vkCmdSetViewportWScalingEnableNV',desc='Specify the viewport W scaling enable state …
84 [open,refpage='vkCmdSetViewportWScalingNV',desc='Set the viewport W scaling dynamically for a comma…
86 To <<pipelines-dynamic-state, dynamically set>> the viewport *W* scaling
93 * pname:firstViewport is the index of the first viewport whose parameters
[all …]
/hardware/google/gfxstream/host/tests/
DTextureDraw_unittest.cpp27 GLint viewport[4] = {}; in TestTextureDrawBasic() local
28 gl->glGetIntegerv(GL_VIEWPORT, viewport); in TestTextureDrawBasic()
29 EXPECT_EQ(0, viewport[0]); in TestTextureDrawBasic()
30 EXPECT_EQ(0, viewport[1]); in TestTextureDrawBasic()
31 const int width = viewport[2]; in TestTextureDrawBasic()
32 const int height = viewport[3]; in TestTextureDrawBasic()
92 GLint viewport[4] = {}; in TestTextureDrawLayer() local
93 gl->glGetIntegerv(GL_VIEWPORT, viewport); in TestTextureDrawLayer()
94 EXPECT_EQ(0, viewport[0]); in TestTextureDrawLayer()
95 EXPECT_EQ(0, viewport[1]); in TestTextureDrawLayer()
[all …]
DGLSnapshotTransformation_unittest.cpp34 GLint viewport[4] = {}; in defaultStateCheck() local
35 gl->glGetIntegerv(GL_VIEWPORT, viewport); in defaultStateCheck()
37 EXPECT_EQ(kTestSurfaceSize[0], viewport[2]); in defaultStateCheck()
38 EXPECT_EQ(kTestSurfaceSize[1], viewport[3]); in defaultStateCheck()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_NV_viewport_swizzle.adoc20 This extension provides a new per-viewport swizzle that can modify the
21 position of primitives sent to each viewport.
22 New viewport swizzle state is added for each viewport, and a new position
26 This new viewport swizzle is useful for a number of algorithms, including
29 The per-viewport component remapping and negation provided by the swizzle
40 1) Where does viewport swizzling occur in the pipeline?
42 *RESOLVED*: Despite being associated with the viewport, viewport swizzling
43 must happen prior to the viewport transform.
47 The viewport mask expansion (`apiext:VK_NV_viewport_array2`) and the
48 viewport swizzle could potentially be performed before or after transform
[all …]
DVK_NV_inherited_viewport_scissor.adoc20 the dynamic viewport and scissor state from a primary command buffer, or a
35 (1) Why are viewport depth values configured in the
56 to have the viewport values used for drawing exactly match the inherited
58 modifying the viewport depth alone is provided.
59 By specifying viewport depth values when starting secondary command buffer
66 The graphics device retains the viewport depth state; it is the CPU-side
70 (2) Why are viewport depth values specified as a partial slink:VkViewport
DVK_NV_scissor_exclusive.adoc41 1) For the scissor test, the viewport state must be created with a matching
42 number of scissor and viewport rectangles.
47 of viewport rectangles.
DVK_QCOM_multiview_per_view_viewports.adoc24 viewport and scissor for each view, without using shader-based viewport
32 pass instance will use a viewport and scissor index equal to the
DVK_AMD_negative_viewport_height.adoc20 This extension allows an application to specify a negative viewport height.
21 The result is that the viewport transformation will flip along the y-axis.
DVK_NVX_multiview_per_view_attributes.adoc32 viewport mask attributes arrays, and this extension defines how those
55 per-view viewport mask must: not be used.
DVK_NV_clip_space_w_scaling.adoc36 In the intended use case for viewport position scaling, an application
39 Each viewport is set to the dimension of the image, but is scissored to the
DVK_EXT_depth_range_unrestricted.adoc37 {leq} z~c~ {leq} w~c~# before the viewport transform.
DVK_NV_viewport_array2.adoc34 viewport index is added into the variable decorated with the code:Layer
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/
Dmatrix_transform.inl444 tvec4<U, P> const & viewport argument
458 tmp[0] = tmp[0] * T(viewport[2]) + T(viewport[0]);
459 tmp[1] = tmp[1] * T(viewport[3]) + T(viewport[1]);
470 tvec4<U, P> const & viewport argument
476 tmp.x = (tmp.x - T(viewport[0])) / T(viewport[2]);
477 tmp.y = (tmp.y - T(viewport[1])) / T(viewport[3]);
492 … P> pickMatrix(tvec2<T, P> const & center, tvec2<T, P> const & delta, tvec4<U, P> const & viewport) argument
501 …(static_cast<T>(viewport[2]) - static_cast<T>(2) * (center.x - static_cast<T>(viewport[0]))) / del…
502 …(static_cast<T>(viewport[3]) - static_cast<T>(2) * (center.y - static_cast<T>(viewport[1]))) / del…
507 …return scale(Result, tvec3<T, P>(static_cast<T>(viewport[2]) / delta.x, static_cast<T>(viewport[3]…
Dmatrix_transform.hpp390 tvec4<U, P> const & viewport);
407 tvec4<U, P> const & viewport);
421 tvec4<U, P> const & viewport);
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/
Dvertexpostproc.adoc17 * Viewport swizzle (see <<vertexpostproc-viewport-swizzle,Viewport
32 <<vertexpostproc-viewport,Controlling the Viewport>>).
439 [[vertexpostproc-viewport-swizzle]]
444 Each primitive sent to a given viewport has a swizzle and optional: negation
446 The swizzle that is applied depends on the viewport index, and is controlled
455 * pname:viewportCount is the number of viewport swizzles used by the
458 slink:VkViewportSwizzleNV structures, defining the viewport swizzles.
485 [open,refpage='vkCmdSetViewportSwizzleNV',desc='Specify the viewport swizzle state dynamically for …
487 To <<pipelines-dynamic-state, dynamically set>> the viewport swizzle state,
494 * pname:firstViewport is the index of the first viewport whose parameters
[all …]
/hardware/google/gfxstream/host/
DPostCommands.h48 } viewport; member
DPostWorker.h51 void viewport(int width, int height);
DPostWorker.cpp150 void PostWorker::viewport(int width, int height) { in viewport() function in gfxstream::PostWorker
/hardware/google/gfxstream/host/gl/
DDisplayGl.h62 void viewport(int width, int height);
DDisplayGl.cpp73 void DisplayGl::viewport(int width, int height) { in viewport() function in gfxstream::gl::DisplayGl
/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/
DCoreProfileEngine.cpp684 GLint viewport[4] = {}; in drawTexOES() local
685 gl.glGetIntegerv(GL_VIEWPORT,viewport); in drawTexOES()
712 float xNdc = 2.0f * (float)(x - viewport[0] - viewport[2] / 2) / (float)viewport[2]; in drawTexOES()
713 float yNdc = 2.0f * (float)(y - viewport[1] - viewport[3] / 2) / (float)viewport[3]; in drawTexOES()
714 float wNdc = 2.0f * (float)width / (float)viewport[2]; in drawTexOES()
715 float hNdc = 2.0f * (float)height / (float)viewport[3]; in drawTexOES()
DGLEScmContext.cpp1661 GLint viewport[4] = {}; in drawTexOES() local
1680 gl.glGetIntegerv(GL_VIEWPORT,viewport); in drawTexOES()
1681 gl.glOrtho(viewport[0],viewport[0] + viewport[2],viewport[1],viewport[1]+viewport[3],0,-1); in drawTexOES()
/hardware/google/gfxstream/common/end2end/
DGfxstreamEnd2EndGlTests.cpp121 GLint viewport[4] = {}; in TEST_P() local
122 mGl->glGetIntegerv(GL_VIEWPORT, viewport); in TEST_P()
124 EXPECT_THAT(viewport[0], Eq(0)); in TEST_P()
125 EXPECT_THAT(viewport[1], Eq(0)); in TEST_P()
126 EXPECT_THAT(viewport[2], Eq(mSurfaceWidth)); in TEST_P()
127 EXPECT_THAT(viewport[3], Eq(mSurfaceHeight)); in TEST_P()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_meta_draw_rects.c194 VkViewport viewport = { in setup_viewport_scissor() local
202 disp->CmdSetViewport(_cmd, 0, 1, &viewport); in setup_viewport_scissor()
/hardware/google/gfxstream/common/detector/
DGraphicsDetectorVkPrecisionQualifiersOnYuvSamplers.cpp332 const vkhpp::Viewport viewport = { in CanHandlePrecisionQualifierWithYuvSampler() local
340 cmd->setViewport(0, {viewport}); in CanHandlePrecisionQualifierWithYuvSampler()

12