remove resolve attachment count
This commit is contained in:
@@ -72,7 +72,7 @@ gnReturnCode createRenderPass(gnRenderPassDescriptor renderPass, gnDevice device
|
|||||||
|
|
||||||
for (int i = 0; i < info.subpassCount; i++) {
|
for (int i = 0; i < info.subpassCount; i++) {
|
||||||
renderPass->renderPassDescriptor->colorAttachments[i] = malloc(sizeof(VkAttachmentReference) * info.subpassInfos[i].colorAttachmentCount);
|
renderPass->renderPassDescriptor->colorAttachments[i] = malloc(sizeof(VkAttachmentReference) * info.subpassInfos[i].colorAttachmentCount);
|
||||||
renderPass->renderPassDescriptor->resolveAttachments[i] = malloc(sizeof(VkAttachmentReference) * info.subpassInfos[i].resolveAttachmentCount);
|
renderPass->renderPassDescriptor->resolveAttachments[i] = malloc(sizeof(VkAttachmentReference) * info.subpassInfos[i].colorAttachmentCount);
|
||||||
|
|
||||||
for (int c = 0; c < info.subpassInfos[i].colorAttachmentCount; c++) {
|
for (int c = 0; c < info.subpassInfos[i].colorAttachmentCount; c++) {
|
||||||
renderPass->renderPassDescriptor->colorAttachments[i][c] = (VkAttachmentReference){
|
renderPass->renderPassDescriptor->colorAttachments[i][c] = (VkAttachmentReference){
|
||||||
@@ -81,7 +81,7 @@ gnReturnCode createRenderPass(gnRenderPassDescriptor renderPass, gnDevice device
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int c = 0; c < info.subpassInfos[i].resolveAttachmentCount; c++) {
|
for (int c = 0; c < info.subpassInfos[i].colorAttachmentCount; c++) {
|
||||||
renderPass->renderPassDescriptor->resolveAttachments[i][c] = (VkAttachmentReference){
|
renderPass->renderPassDescriptor->resolveAttachments[i][c] = (VkAttachmentReference){
|
||||||
.attachment = info.subpassInfos[i].resolveAttachments[c].index,
|
.attachment = info.subpassInfos[i].resolveAttachments[c].index,
|
||||||
.layout = vkGryphnImageLayout(info.subpassInfos[i].resolveAttachments[c].imageLayout)
|
.layout = vkGryphnImageLayout(info.subpassInfos[i].resolveAttachments[c].imageLayout)
|
||||||
|
@@ -45,11 +45,9 @@ typedef struct gnSubpassAttachmentInfo_t {
|
|||||||
typedef struct gnSubpassInfo_t {
|
typedef struct gnSubpassInfo_t {
|
||||||
uint32_t colorAttachmentCount;
|
uint32_t colorAttachmentCount;
|
||||||
gnSubpassAttachmentInfo* colorAttachments;
|
gnSubpassAttachmentInfo* colorAttachments;
|
||||||
|
gnSubpassAttachmentInfo* resolveAttachments;
|
||||||
|
|
||||||
gnSubpassAttachmentInfo* depthAttachment;
|
gnSubpassAttachmentInfo* depthAttachment;
|
||||||
|
|
||||||
uint32_t resolveAttachmentCount;
|
|
||||||
gnSubpassAttachmentInfo* resolveAttachments;
|
|
||||||
} gnSubpassInfo;
|
} gnSubpassInfo;
|
||||||
|
|
||||||
#define GN_SUBPASS_EXTERNAL -1
|
#define GN_SUBPASS_EXTERNAL -1
|
||||||
|
Reference in New Issue
Block a user