Context contains the render state used by various components.
More...
#import <Context.h>
Context contains the render state used by various components.
◆ _initClearState()
◆ _initConversionFilters()
- (bool) _initConversionFilters |
|
|
|
|
implementation |
◆ _initMenuStates()
◆ _nextChain()
◆ _spriteVertexDescriptor()
- (MTLVertexDescriptor *) _spriteVertexDescriptor |
|
|
|
|
implementation |
◆ allocRange:length:()
◆ begin()
begin marks the beginning of a frame
◆ convertFormat:from:to:()
- (void) convertFormat: |
|
(RPixelFormat) |
fmt |
from: |
|
(id<MTLTexture>) |
src |
to: |
|
(id<MTLTexture>) |
dst |
|
|
| |
◆ drawQuadX:y:w:h:r:g:b:a:()
- (void) drawQuadX: |
|
(float) |
x |
y: |
|
(float) |
y |
w: |
|
(float) |
w |
h: |
|
(float) |
h |
r: |
|
(float) |
r |
g: |
|
(float) |
g |
b: |
|
(float) |
b |
a: |
|
(float) |
a |
|
|
| |
draws a quad at the specified position (normalized coordinates) using the main render encoder
◆ end()
end commits the command buffer
◆ getStockShader:blend:()
- (id< MTLRenderPipelineState >) getStockShader: |
|
(int) |
index |
blend: |
|
(bool) |
blend |
|
|
| |
◆ initWithDevice:layer:library:()
- (instancetype) initWithDevice: |
|
(id<MTLDevice>) |
d |
layer: |
|
(CAMetalLayer *) |
layer |
library: |
|
(id<MTLLibrary>) |
l |
|
|
| |
◆ newTexture:filter:()
◆ newTexture:mipmapped:()
◆ readBackBuffer:()
◆ resetRenderViewport()
- (void) resetRenderViewport |
|
|
|
resets the viewport for the main render encoder to the drawable size
◆ resetScissorRect()
- (void) resetScissorRect |
|
|
|
resets the scissor rect for the main render encoder to the drawable size
◆ setCaptureEnabled:()
- (void) setCaptureEnabled: |
|
(bool) |
captureEnabled |
|
|
implementation |
◆ setDisplaySyncEnabled:()
- (void) setDisplaySyncEnabled: |
|
(bool) |
displaySyncEnabled |
|
|
implementation |
◆ setRotation:()
- (void) setRotation: |
|
(unsigned) |
rotation |
|
◆ setViewport:()
◆ blitCommandBuffer
- (id< MTLCommandBuffer >) blitCommandBuffer |
|
readnonatomicassign |
Returns the command buffer used for pre-render work, such as mip maps and shader effects.
◆ captureEnabled
captureEnabled allows previous frames to be read
◆ clearColor
- (MTLClearColor) clearColor |
|
readwritenonatomicassign |
◆ commandBuffer
- (id<MTLCommandBuffer>) commandBuffer |
|
readnonatomicassign |
Returns the command buffer for the current frame.
◆ device
◆ displaySyncEnabled
- (bool) displaySyncEnabled |
|
readwritenonatomicassign |
Specifies whether rendering is synchronized with the display.
◆ library
- (id<MTLLibrary>) library |
|
readnonatomicassign |
◆ nextDrawable
- (id< CAMetalDrawable >) nextDrawable |
|
readnonatomicassign |
◆ rce
- (id< MTLRenderCommandEncoder >) rce |
|
readnonatomicassign |
Main render encoder to back buffer.
◆ uniforms
◆ viewport
The documentation for this class was generated from the following files: