Older systems: iOS 18+ / macOS 15+ via the older-API build; floating left stick; runeword required level; Mac keyboard, mouse and docs; clearer older-device dialog
This commit is contained in:
@@ -3,12 +3,17 @@
|
||||
#include <stdint.h>
|
||||
#import <Metal/Metal.h>
|
||||
#include "nvn_deswizzle.h"
|
||||
#ifndef DM_NVN_M3
|
||||
#define DM_NVN_M3 0 // 见 nvn_mtl.m:1 = 图形后端走老接口 | see nvn_mtl.m: 1 = the graphics backend uses the older API
|
||||
#endif
|
||||
|
||||
int nvn_deswz_gpu_init(id<MTLDevice> dev);
|
||||
int nvn_deswz_gpu_encode(id<MTLComputeCommandEncoder> enc, id<MTLBuffer> src, uint64_t src_off,
|
||||
const nvn_texdesc *d, unsigned level, unsigned layer,
|
||||
id<MTLBuffer> dst, uint64_t dst_off, size_t dst_pitch);
|
||||
#if !DM_NVN_M3
|
||||
int nvn_deswz_gpu_encode_m4(id<MTL4ComputeCommandEncoder> enc, id<MTL4ArgumentTable> table,
|
||||
id<MTLBuffer> params, size_t params_off, id<MTLBuffer> src, uint64_t src_off,
|
||||
const nvn_texdesc *d, unsigned level, unsigned layer,
|
||||
id<MTLBuffer> dst, uint64_t dst_off, size_t dst_pitch);
|
||||
#endif
|
||||
|
||||
@@ -48,6 +48,7 @@ int nvn_deswz_gpu_encode(id<MTLComputeCommandEncoder> enc, id<MTLBuffer> src, ui
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if !DM_NVN_M3
|
||||
int nvn_deswz_gpu_encode_m4(id<MTL4ComputeCommandEncoder> enc, id<MTL4ArgumentTable> table,
|
||||
id<MTLBuffer> params, size_t params_off, id<MTLBuffer> src, uint64_t src_off,
|
||||
const nvn_texdesc *d, unsigned level, unsigned layer,
|
||||
@@ -71,3 +72,4 @@ int nvn_deswz_gpu_encode_m4(id<MTL4ComputeCommandEncoder> enc, id<MTL4ArgumentTa
|
||||
[enc dispatchThreadgroups:MTLSizeMake(gobs_x, gobs_y, slices) threadsPerThreadgroup:MTLSizeMake(32, 1, 1)];
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user