egorand
02/15/2019, 3:55 PMenum class RenderPassCreate(override val value: Int) {
companion object
}
This is the code we currently generate, and it will not compile, with the error being Expecting ';' after the last enum entry or '}' to close enum class body. The compiler expects the following:
enum class RenderPassCreate(override val value: Int) {
;
companion object
}
which in my opinion looks ugly. I wonder if there’s a hard technical limitation behind this, and whether the compiler could handle this better? Tried searching YouTrack and it doesn’t look like it’s been filedegorand
02/15/2019, 5:23 PMDominaezzz
02/15/2019, 5:38 PMDominaezzz
02/15/2019, 6:13 PMvkCreateRenderPass2(...) method because vkCreateRenderPass(...) doesn't take a RenderPassCreate parameter. It's also consistent with all the other vkCreateSomeObject methods that take a SomeObjectCreate parameter that have actual entries.Dominaezzz
02/15/2019, 7:43 PM