MTLRasterizationRateLayerDescriptor.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(Single[], Single[]) |
Create a new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates. |
| Create(MTLSize, Single[], Single[]) |
Create a new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates. |
Create(Single[], Single[])
Create a new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates.
public static Metal.MTLRasterizationRateLayerDescriptor Create(float[] horizontal, float[] vertical);
static member Create : single[] * single[] -> Metal.MTLRasterizationRateLayerDescriptor
Parameters
- horizontal
- Single[]
The horizontal rasterization rates for the new MTLRasterizationRateLayerDescriptor instance.
- vertical
- Single[]
The vertical rasterization rates for the new MTLRasterizationRateLayerDescriptor instance.
Returns
A new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates.
Applies to
Create(MTLSize, Single[], Single[])
Create a new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates.
public static Metal.MTLRasterizationRateLayerDescriptor Create(Metal.MTLSize sampleCount, float[] horizontal, float[] vertical);
static member Create : Metal.MTLSize * single[] * single[] -> Metal.MTLRasterizationRateLayerDescriptor
Parameters
- sampleCount
- MTLSize
The number of horizontal (Width) and vertical (Height) rasterization rates. The depth component (Depth) is ignored.
- horizontal
- Single[]
The horizontal rasterization rates for the new MTLRasterizationRateLayerDescriptor instance.
- vertical
- Single[]
The vertical rasterization rates for the new MTLRasterizationRateLayerDescriptor instance.
Returns
A new MTLRasterizationRateLayerDescriptor instance with the specified rasterization rates.