save code
This commit is contained in:
@@ -109,6 +109,8 @@ Java_com_khronos_vulkan_1samples_MainActivity_nativeButtonClicked(JNIEnv *env, j
|
||||
LOGI("call MainActivity_nativeButtonClicked.");
|
||||
}
|
||||
|
||||
extern void TextureLoadProcessWithVulkan(uint8_t* data, int width, int height, int format, int rowStride, size_t dataSize);
|
||||
|
||||
void processWithVulkan(uint8_t* data, int width, int height, int format,
|
||||
int rowStride, size_t dataSize) {
|
||||
// Vulkan 处理逻辑
|
||||
@@ -116,8 +118,8 @@ void processWithVulkan(uint8_t* data, int width, int height, int format,
|
||||
// 2. 将数据复制到 Vulkan 图像内存
|
||||
// 3. 执行 Vulkan 渲染或计算操作
|
||||
|
||||
LOGI("ProcessingImage: %dx%d, stride: %d, size: %zu",
|
||||
width, height, rowStride, dataSize);
|
||||
LOGI("ProcessingImage: %dx%d, stride: %d, size: %zu", width, height, rowStride, dataSize);
|
||||
TextureLoadProcessWithVulkan(data, width, height, format, rowStride, dataSize);
|
||||
}
|
||||
|
||||
extern "C"
|
||||
|
||||
Reference in New Issue
Block a user