MCPcopy Create free account
hub / github.com/cogentcore/core / PlatformDefaults

Function PlatformDefaults

vgpu/gpu_linux.go:11–20  ·  view source on GitHub ↗
(gp *GPU)

Source from the content-addressed store, hash-verified

9import vk "github.com/goki/vulkan"
10
11func PlatformDefaults(gp *GPU) {
12 gp.DeviceFeaturesNeeded = &vk.PhysicalDeviceVulkan12Features{
13 SType: vk.StructureTypePhysicalDeviceVulkan12Features,
14 DescriptorBindingVariableDescriptorCount: vk.True,
15 DescriptorBindingPartiallyBound: vk.True,
16 RuntimeDescriptorArray: vk.True,
17 DescriptorIndexing: vk.True, // might not be needed? not for phong or vdraw
18 DescriptorBindingSampledImageUpdateAfterBind: vk.True, // might not be needed? not for phong or vdraw
19 }
20}

Callers 1

DefaultsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected