STRUCT
MetalOptions
Contents
- Properties
apiValidation
shaderValidation
showGraphicsOverview
logGraphicsOverview
- Methods
options(apiValidation:shaderValidation:showGraphicsOverview:logGraphicsOverview:)
swift
public struct MetalOptions: Equatable, Codable, Sendable
Options to configure scheme metal options for run and test actions.
Properties
apiValidation
swift
public var apiValidation: Bool
API Validation
shaderValidation
swift
public var shaderValidation: Bool
Shader Validation
showGraphicsOverview
swift
public var showGraphicsOverview: Bool
Shows graphics overview
logGraphicsOverview
swift
public var logGraphicsOverview: Bool
Log graphics overview
Methods
options(apiValidation:shaderValidation:showGraphicsOverview:logGraphicsOverview:)
swift
public static func options(
apiValidation: Bool = true,
shaderValidation: Bool = false,
showGraphicsOverview: Bool = false,
logGraphicsOverview: Bool = false
) -> MetalOptions
Creates a MetalOptions
instance
- Parameters:
- apiValidation: Specifies whether API validation is enabled.
- shaderValidation: Specifies whether shader validation is enabled.
- showGraphicsOverview: Specifies whether to show the graphics overview.
- logGraphicsOverview: Specifies whether to log the graphics overview.
Parameters
Name | Description |
---|---|
apiValidation | Specifies whether API validation is enabled. |
shaderValidation | Specifies whether shader validation is enabled. |
showGraphicsOverview | Specifies whether to show the graphics overview. |
logGraphicsOverview | Specifies whether to log the graphics overview. |