Skip to content

Commit b933f22

Browse files
committed
perf(WebGPU): reduce ImageMapper UBO array allocations
1 parent 29ff7e5 commit b933f22

2 files changed

Lines changed: 123 additions & 100 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export const TextureChannelMode = {
2+
SINGLE: 'single',
3+
DEPENDENT_LA: 'dependent-la',
4+
DEPENDENT_RGB: 'dependent-rgb',
5+
DEPENDENT_RGBA: 'dependent-rgba',
6+
INDEPENDENT_1: 'independent-1',
7+
INDEPENDENT_2: 'independent-2',
8+
INDEPENDENT_3: 'independent-3',
9+
INDEPENDENT_4: 'independent-4',
10+
};
11+
12+
export const TextureSlot = {
13+
IMAGE: 0,
14+
COLOR_LUT: 1,
15+
OPACITY_LUT: 2,
16+
LABEL_OUTLINE_THICKNESS: 3,
17+
LABEL_OUTLINE_OPACITY: 4,
18+
};

0 commit comments

Comments
 (0)