Lines Matching refs:vkRT
190 const GrVkRenderTarget* vkRT, in setup_viewport_scissor_state() argument
201 viewport->width = SkIntToScalar(vkRT->width()); in setup_viewport_scissor_state()
202 viewport->height = SkIntToScalar(vkRT->height()); in setup_viewport_scissor_state()
210 !scissorState.rect().contains(0, 0, vkRT->width(), vkRT->height())) { in setup_viewport_scissor_state()
215 if (kTopLeft_GrSurfaceOrigin == vkRT->origin()) { in setup_viewport_scissor_state()
218 SkASSERT(kBottomLeft_GrSurfaceOrigin == vkRT->origin()); in setup_viewport_scissor_state()
219 scissor->offset.y = vkRT->height() - scissorState.rect().fBottom; in setup_viewport_scissor_state()
226 SkASSERT(scissor->offset.x + scissor->extent.width <= (uint32_t)vkRT->width()); in setup_viewport_scissor_state()
228 SkASSERT(scissor->offset.y + scissor->extent.height <= (uint32_t)vkRT->height()); in setup_viewport_scissor_state()
230 scissor->extent.width = vkRT->width(); in setup_viewport_scissor_state()
231 scissor->extent.height = vkRT->height(); in setup_viewport_scissor_state()
449 GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(rt); in Create() local
453 setup_viewport_scissor_state(gpu, pipeline, vkRT, &viewportInfo, &viewport, &scissor); in Create()