another one ``` val enabledLayerNames = if...
# hamburg
e
another one
Copy code
val enabledLayerNames = if (!wantsOpenGLSwapchain && validation) {
            val pointers = stack.callocPointer(defaultValidationLayers.size)
            defaultValidationLayers.forEach { pointers.put(stack.UTF8(it)) }
            pointers
        } else {
            stack.callocPointer(0)
        }
s
Copy code
stack.callocPointer(defaultValidationLayers.size).also {
   //stuff with it
}
👍 1
e
also, yeah