typedef struct {
VkOffset2D offset;
VkExtent2D extent;
-} VkRect;
+} VkRect2D;
typedef struct {
VkStructureType sType;
const void* pNext;
uint32_t viewportAndScissorCount;
const VkViewport* pViewports;
- const VkRect* pScissors;
+ const VkRect2D* pScissors;
} VkDynamicVpStateCreateInfo;
typedef struct {
typedef struct {
VkStructureType sType;
const void* pNext;
-
- VkRect renderArea;
+ VkRect2D renderArea;
uint32_t colorAttachmentCount;
VkExtent2D extent;
uint32_t sampleCount;
for (uint32_t i = 0; i < pCreateInfo->viewportAndScissorCount; i++) {
const VkViewport *vp = &pCreateInfo->pViewports[i];
- const VkRect *s = &pCreateInfo->pScissors[i];
+ const VkRect2D *s = &pCreateInfo->pScissors[i];
struct GEN8_SF_CLIP_VIEWPORT sf_clip_viewport = {
.ViewportMatrixElementm00 = vp->width / 2,
.maxDepth = 1
},
},
- .pScissors = (VkRect[]) {
+ .pScissors = (VkRect2D[]) {
{ { 0, 0 },
{ pCreateInfo->width, pCreateInfo->height } },
}