vk/vulkan.h: Rename VkRect to VkRect2D
This commit is contained in:
parent
63c1190e47
commit
1f1b26bceb
|
@ -1619,14 +1619,14 @@ typedef struct {
|
|||
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 {
|
||||
|
@ -1694,8 +1694,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
VkStructureType sType;
|
||||
const void* pNext;
|
||||
|
||||
VkRect renderArea;
|
||||
VkRect2D renderArea;
|
||||
uint32_t colorAttachmentCount;
|
||||
VkExtent2D extent;
|
||||
uint32_t sampleCount;
|
||||
|
|
|
@ -1956,7 +1956,7 @@ VkResult anv_CreateDynamicViewportState(
|
|||
|
||||
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,
|
||||
|
@ -3585,7 +3585,7 @@ VkResult anv_CreateFramebuffer(
|
|||
.maxDepth = 1
|
||||
},
|
||||
},
|
||||
.pScissors = (VkRect[]) {
|
||||
.pScissors = (VkRect2D[]) {
|
||||
{ { 0, 0 },
|
||||
{ pCreateInfo->width, pCreateInfo->height } },
|
||||
}
|
||||
|
|
|
@ -909,7 +909,7 @@ struct anv_render_pass_layer {
|
|||
};
|
||||
|
||||
struct anv_render_pass {
|
||||
VkRect render_area;
|
||||
VkRect2D render_area;
|
||||
|
||||
uint32_t num_clear_layers;
|
||||
uint32_t num_layers;
|
||||
|
|
Loading…
Reference in New Issue