mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Updates
This commit is contained in:
parent
238d72d187
commit
783f16b198
@ -98,7 +98,8 @@ extern MTLPixelFormat SelectOptimalPixelFormat(MTLPixelFormat fmt);
|
||||
inputData:(void **)inputData;
|
||||
|
||||
- (void)setVideo:(const video_info_t *)video;
|
||||
- (bool)renderFrame:(const void *)data
|
||||
- (bool)renderFrame:(const void *)frame
|
||||
data:(void*)data
|
||||
width:(unsigned)width
|
||||
height:(unsigned)height
|
||||
frameCount:(uint64_t)frameCount
|
||||
|
@ -282,7 +282,8 @@
|
||||
|
||||
}
|
||||
|
||||
- (bool)renderFrame:(const void *)data
|
||||
- (bool)renderFrame:(const void *)frame
|
||||
data:(void*)data
|
||||
width:(unsigned)width
|
||||
height:(unsigned)height
|
||||
frameCount:(uint64_t)frameCount
|
||||
@ -300,10 +301,10 @@
|
||||
[self _beginFrame];
|
||||
|
||||
_frameView.frameCount = frameCount;
|
||||
if (data && width && height)
|
||||
if (frame && width && height)
|
||||
{
|
||||
_frameView.size = CGSizeMake(width, height);
|
||||
[_frameView updateFrame:data pitch:pitch];
|
||||
[_frameView updateFrame:frame pitch:pitch];
|
||||
}
|
||||
|
||||
[self _drawCore:video_info];
|
||||
|
@ -95,6 +95,7 @@ static bool metal_frame(void *data, const void *frame,
|
||||
{
|
||||
MetalDriver *md = (__bridge MetalDriver *)data;
|
||||
return [md renderFrame:frame
|
||||
data:data
|
||||
width:frame_width
|
||||
height:frame_height
|
||||
frameCount:frame_count
|
||||
|
Loading…
x
Reference in New Issue
Block a user