Documentation
¶
Overview ¶
Package pipelinecache provides shared disk persistence helpers for GPU driver pipeline caches (Vulkan VkPipelineCache and DX12 cached PSO blobs).
This package is internal to wgpu. Backends own cache lifecycle; this package only handles adapter-scoped paths and atomic blob I/O.
Index ¶
- func DX12AdapterKey(luidLow uint32, luidHigh int32, vendorID, deviceID, revision uint32) string
- func DeleteBlob(path string) error
- func HexKey(parts ...[]byte) string
- func LoadBlob(path string) ([]byte, error)
- func SaveBlob(path string, data []byte) error
- func UserCachePath(backend, adapterKey, fileName string) (string, error)
- func VulkanAdapterKey(vendorID, deviceID, driverVersion uint32, uuid [16]byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DX12AdapterKey ¶
DX12AdapterKey identifies a DXGI adapter for cache scoping.
func DeleteBlob ¶
DeleteBlob removes a cache blob. Missing files are ignored.
func UserCachePath ¶
UserCachePath returns an adapter-scoped cache file path under os.UserCacheDir(). Example: ~/.cache/gogpu/vulkan/<adapterKey>/pipeline.cache
func VulkanAdapterKey ¶
VulkanAdapterKey identifies a Vulkan physical device for cache scoping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.