MTLRenderPassDescriptor

A group of render targets that hold the results of a render pass.

version(D_ObjectiveC)
extern (Objective-C) extern
class MTLRenderPassDescriptor {}

Members

Functions

colorAttachments
MTLRenderPassColorAttachmentDescriptorArray colorAttachments()

An array of state information for attachments that store color data.

defaultRasterSampleCount
NSUInteger defaultRasterSampleCount()

The raster sample count for the render pass when the render pass doesn’t have explicit attachments.

defaultRasterSampleCount
NSUInteger defaultRasterSampleCount(NSUInteger )
Undocumented in source.
depthAttachment
MTLRenderPassDepthAttachmentDescriptor depthAttachment()

State information for an attachment that stores depth data.

depthAttachment
MTLRenderPassDepthAttachmentDescriptor depthAttachment(MTLRenderPassDepthAttachmentDescriptor )
Undocumented in source.
getSamplePositions
NSUInteger getSamplePositions(MTLSamplePosition positions, NSUInteger count)
Undocumented in source.
imageBlockSampleLength
NSUInteger imageBlockSampleLength()

The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass.

imageBlockSampleLength
NSUInteger imageBlockSampleLength(NSUInteger )
Undocumented in source.
rasterizationRateMap
MTLRasterizationRateMap rasterizationRateMap()

The rasterization rate map to use when executing the render pass.

rasterizationRateMap
MTLRasterizationRateMap rasterizationRateMap(MTLRasterizationRateMap )
Undocumented in source.
renderTargetArrayLength
NSUInteger renderTargetArrayLength()

The number of active layers that all attachments must have for layered rendering.

renderTargetArrayLength
NSUInteger renderTargetArrayLength(NSUInteger )
Undocumented in source.
renderTargetHeight
NSUInteger renderTargetHeight()

The height, in pixels, to constrain the render target to.

renderTargetHeight
NSUInteger renderTargetHeight(NSUInteger )
Undocumented in source.
renderTargetWidth
NSUInteger renderTargetWidth()

The width, in pixels, to constrain the render target to.

renderTargetWidth
NSUInteger renderTargetWidth(NSUInteger )
Undocumented in source.
sampleBufferAttachments
MTLRenderPassSampleBufferAttachmentDescriptorArray sampleBufferAttachments()

The array of sample buffers that the render pass can access.

setSamplePositions
void setSamplePositions(MTLSamplePosition positions, NSUInteger count)

Sets the programmable sample positions for a render pass.

stencilAttachment
MTLRenderPassStencilAttachmentDescriptor stencilAttachment()

State information for an attachment that stores stencil data.

stencilAttachment
MTLRenderPassStencilAttachmentDescriptor stencilAttachment(MTLRenderPassStencilAttachmentDescriptor )
Undocumented in source.
threadgroupMemoryLength
NSUInteger threadgroupMemoryLength()

The per-tile size, in bytes, of the persistent threadgroup memory allocation.

threadgroupMemoryLength
NSUInteger threadgroupMemoryLength(NSUInteger )
Undocumented in source.
tileHeight
NSUInteger tileHeight()

The tile height, in pixels.

tileHeight
NSUInteger tileHeight(NSUInteger )
Undocumented in source.
tileWidth
NSUInteger tileWidth()

The tile width, in pixels.

tileWidth
NSUInteger tileWidth(NSUInteger )
Undocumented in source.
visibilityResultBuffer
MTLBuffer visibilityResultBuffer()

A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests.

visibilityResultBuffer
MTLBuffer visibilityResultBuffer(MTLBuffer )
Undocumented in source.

Static functions

renderPassDescriptor
MTLRenderPassDescriptor renderPassDescriptor()

Creates a default render pass descriptor.

Meta