-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgpu_linux.go
More file actions
20 lines (16 loc) · 846 Bytes
/
gpu_linux.go
File metadata and controls
20 lines (16 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2022, Cogent Core. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build (linux && !android) || dragonfly || openbsd
package vgpu
import vk "github.com/goki/vulkan"
func PlatformDefaults(gp *GPU) {
gp.DeviceFeaturesNeeded = &vk.PhysicalDeviceVulkan12Features{
SType: vk.StructureTypePhysicalDeviceVulkan12Features,
DescriptorBindingVariableDescriptorCount: vk.True,
DescriptorBindingPartiallyBound: vk.True,
RuntimeDescriptorArray: vk.True,
DescriptorIndexing: vk.True, // might not be needed? not for phong or vdraw
DescriptorBindingSampledImageUpdateAfterBind: vk.True, // might not be needed? not for phong or vdraw
}
}