remove resolve attachment count

This commit is contained in:
Greg Wells
2025-07-06 07:30:35 -04:00
parent b9cbdd3286
commit 07d4e13f20
2 changed files with 3 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ gnReturnCode createRenderPass(gnRenderPassDescriptor renderPass, gnDevice device
for (int i = 0; i < info.subpassCount; i++) {
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++) {
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){
.attachment = info.subpassInfos[i].resolveAttachments[c].index,
.layout = vkGryphnImageLayout(info.subpassInfos[i].resolveAttachments[c].imageLayout)

View File

@@ -45,11 +45,9 @@ typedef struct gnSubpassAttachmentInfo_t {
typedef struct gnSubpassInfo_t {
uint32_t colorAttachmentCount;
gnSubpassAttachmentInfo* colorAttachments;
gnSubpassAttachmentInfo* resolveAttachments;
gnSubpassAttachmentInfo* depthAttachment;
uint32_t resolveAttachmentCount;
gnSubpassAttachmentInfo* resolveAttachments;
} gnSubpassInfo;
#define GN_SUBPASS_EXTERNAL -1