From 5d078461a2ceed41bc016f45efaf831e77c1ff18 Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 6 May 2022 17:26:59 -0700 Subject: [PATCH] Rename copy texture usage to transfer; --- src/api/l_graphics.c | 2 +- src/modules/graphics/graphics.c | 2 +- src/modules/graphics/graphics.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/l_graphics.c b/src/api/l_graphics.c index dba675f0..bdc442b8 100644 --- a/src/api/l_graphics.c +++ b/src/api/l_graphics.c @@ -105,7 +105,7 @@ StringEntry lovrTextureUsage[] = { [0] = ENTRY("sample"), [1] = ENTRY("render"), [2] = ENTRY("storage"), - [3] = ENTRY("copy"), + [3] = ENTRY("transfer"), { 0 } }; diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 105e5e62..0fa288d1 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -382,7 +382,7 @@ Texture* lovrTextureCreate(TextureInfo* info) { ((info->usage & TEXTURE_SAMPLE) ? GPU_TEXTURE_SAMPLE : 0) | ((info->usage & TEXTURE_RENDER) ? GPU_TEXTURE_RENDER : 0) | ((info->usage & TEXTURE_STORAGE) ? GPU_TEXTURE_STORAGE : 0) | - ((info->usage & TEXTURE_COPY) ? GPU_TEXTURE_COPY_SRC | GPU_TEXTURE_COPY_DST : 0), + ((info->usage & TEXTURE_TRANSFER) ? GPU_TEXTURE_COPY_SRC | GPU_TEXTURE_COPY_DST : 0), .srgb = info->srgb, .handle = info->handle, .label = info->label, diff --git a/src/modules/graphics/graphics.h b/src/modules/graphics/graphics.h index 7c85a7fa..50cff77f 100644 --- a/src/modules/graphics/graphics.h +++ b/src/modules/graphics/graphics.h @@ -156,10 +156,10 @@ typedef enum { } TextureType; enum { - TEXTURE_SAMPLE = (1 << 0), - TEXTURE_RENDER = (1 << 1), - TEXTURE_STORAGE = (1 << 2), - TEXTURE_COPY = (1 << 3) + TEXTURE_SAMPLE = (1 << 0), + TEXTURE_RENDER = (1 << 1), + TEXTURE_STORAGE = (1 << 2), + TEXTURE_TRANSFER = (1 << 3) }; typedef struct {