Skip to content

Commit 84a19d2

Browse files
committed
floats working
1 parent 53ef3b7 commit 84a19d2

File tree

6 files changed

+211
-174
lines changed

6 files changed

+211
-174
lines changed

src/gpu_hash/shader.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ export class HashSetShaderManager {
139139
addCode(glsl_hashCombine);
140140
addCode(glsl_uint64);
141141
addCode(glsl_equalUint64);
142-
console.log("what does this next thing do?");
143-
this.accessHelper.defineShader(builder); // TODO does thsi do anything?
142+
this.accessHelper.defineShader(builder);
144143
// TODO, can we use DataType.Float32 here for float segment properties?
145144
addCode(
146145
this.accessHelper.getAccessor(

src/layer/segmentation/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ import type {
6666
SegmentPropertyMap,
6767
} from "#src/segmentation_display_state/property_map.js";
6868
import {
69-
extractUsedSegmentProperties,
7069
getPreprocessedSegmentPropertyMap,
71-
getShaderOutputType,
72-
SegmentationColorUserShader,
7370
SegmentationColorUserShaderManager,
7471
} from "#src/segmentation_display_state/property_map.js";
7572
import { LocalSegmentationGraphSource } from "#src/segmentation_graph/local.js";
@@ -424,7 +421,7 @@ class LinkedSegmentationGroupState<
424421
}
425422
}
426423

427-
const DEFAULT_FRAGMENT_SEGMENT_COLOR = `
424+
export const DEFAULT_FRAGMENT_SEGMENT_COLOR = `
428425
vec4 segmentColor(vec4 color) {
429426
return color;
430427
}

0 commit comments

Comments
 (0)