GpuDevice

fun GpuDevice(shaderFormats: Set<ShaderFormat>, validation: GpuValidation = GpuValidation.DISABLED): GpuDevice(source)

Creates a GPU device that accepts shaders in any of shaderFormats. Pass every format you ship so SDL can pick a backend on each platform.

Throws

if no backend supports the formats.