#pragma once #include #include #import #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 dev); int nvn_deswz_gpu_encode(id enc, id src, uint64_t src_off, const nvn_texdesc *d, unsigned level, unsigned layer, id dst, uint64_t dst_off, size_t dst_pitch); #if !DM_NVN_M3 int nvn_deswz_gpu_encode_m4(id enc, id table, id params, size_t params_off, id src, uint64_t src_off, const nvn_texdesc *d, unsigned level, unsigned layer, id dst, uint64_t dst_off, size_t dst_pitch); #endif