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 filedRuckus
02/15/2019, 4:26 PMcompanion
isn't one of the enum's values?
As a side note, what is the purpose of an enum without values?egorand
02/15/2019, 5:23 PMDominaezzz
02/15/2019, 5:38 PMRuckus
02/15/2019, 6:06 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.Ruckus
02/15/2019, 7:35 PMDominaezzz
02/15/2019, 7:43 PM