Can't get anything to render to secondary render pass attachments.

Started by
0 comments, last by Davidtse 7 years, 9 months ago

I can't for the life of me get this to work. I have my render pass, sub pass, and framebuffer all set up with my attachments, but my shader refuses to write anything to them. I can get them to each clear to a different color, but shader only writes to first attachment. Depth works fine.

I also tried swapping the images between the primary and other attachments and still exact same results. I would post code, but I don't even know what part is the problem. If you want to see some specific code to help me track down the issue that's not an issue.

I feel like i'm missing something stupid. Do I have to explicitly put something in the pipeline or descriptor sets to be able to write to other attachments? If someone could quickly give me a high level overview on what needs to be done to write to a non primary attachment or provide any insight on why this might be happening I would really appreciate it.

I'm working on a first person zombie shooter that's set in a procedural open world. I'm using a custom game engine created from scratch with opengl and C++. Follow my development blog for updates on the game and the engine. http://www.Subsurfacegames.com

Advertisement

Ok I got a fix for the problem for any one else having the same issue. I wasn't creating a VkPipelineColorBlendAttachmentState for each attachment which you need to do.

I'm working on a first person zombie shooter that's set in a procedural open world. I'm using a custom game engine created from scratch with opengl and C++. Follow my development blog for updates on the game and the engine. http://www.Subsurfacegames.com

This topic is closed to new replies.

Advertisement