@woosh/meep-engine 3.72.0 → 3.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/engine/graphics/ecs/text/Text.d.ts +21 -2
- package/src/engine/graphics/ecs/text/Text.d.ts.map +1 -1
- package/src/engine/graphics/ecs/text/Text.js +24 -3
- package/src/engine/graphics3/TextSystem.d.ts +9 -8
- package/src/engine/graphics3/TextSystem.d.ts.map +1 -1
- package/src/engine/graphics3/TextSystem.js +65 -134
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts +11 -5
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts.map +1 -1
- package/src/shade/device/pipeline/PipelineEnquiry.js +7 -0
- package/src/shade/playground/text/main.js +4 -1
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +10 -1
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.d.ts +8 -0
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.d.ts.map +1 -1
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.js +18 -0
- package/src/shade/renderer/extension/PresentTarget.d.ts +10 -0
- package/src/shade/renderer/extension/PresentTarget.d.ts.map +1 -1
- package/src/shade/renderer/extension/PresentTarget.js +17 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/text/GPUTextAVBOITChannel.d.ts.map +1 -1
- package/src/shade/renderer/text/GPUTextAVBOITChannel.js +67 -37
- package/src/shade/renderer/text/GPUTextSystem.d.ts +7 -0
- package/src/shade/renderer/text/GPUTextSystem.d.ts.map +1 -1
- package/src/shade/renderer/text/GPUTextSystem.js +40 -0
- package/src/shade/renderer/text/data/TEXT_RECORD.d.ts +1 -1
- package/src/shade/renderer/text/data/TEXT_RECORD.d.ts.map +1 -1
- package/src/shade/renderer/text/data/TEXT_RECORD.js +9 -4
- package/src/shade/renderer/text/graph_text.d.ts +14 -94
- package/src/shade/renderer/text/graph_text.d.ts.map +1 -1
- package/src/shade/renderer/text/graph_text.js +83 -106
- package/src/shade/renderer/text/graph_text_avboit.d.ts +1 -1
- package/src/shade/renderer/text/graph_text_avboit.js +1 -1
- package/src/shade/renderer/text/runtime/TextParameters.d.ts +11 -0
- package/src/shade/renderer/text/runtime/TextParameters.d.ts.map +1 -1
- package/src/shade/renderer/text/runtime/TextParameters.js +23 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.d.ts +3 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.js +20 -2
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.d.ts +15 -0
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.d.ts.map +1 -0
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.js +29 -0
- package/src/shade/renderer/text/shaders/chunk_text_facing.d.ts +7 -2
- package/src/shade/renderer/text/shaders/chunk_text_facing.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/chunk_text_facing.js +19 -2
- package/src/shade/renderer/text/shaders/shader_text_count.d.ts +4 -4
- package/src/shade/renderer/text/shaders/shader_text_count.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_count.js +15 -8
- package/src/shade/renderer/text/shaders/shader_text_count_scene.d.ts +2 -2
- package/src/shade/renderer/text/shaders/shader_text_count_scene.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_count_scene.js +4 -5
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.d.ts +2 -2
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.js +6 -3
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.d.ts +19 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.d.ts.map +1 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.js +156 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.d.ts +2 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.js +7 -3
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The pipelines a frame with text at the
|
|
2
|
+
* The pipelines a frame with text at the overlay site draws with. The draws are onto the canvas, so they are
|
|
3
|
+
* offered for the format the enquiry says the canvas has, and not at all when it names none.
|
|
3
4
|
*
|
|
4
5
|
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
6
|
*/
|
|
6
|
-
export function
|
|
7
|
+
export function enquire_text_overlay_pipelines(enquiry: import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
7
8
|
/**
|
|
8
9
|
* The pipelines a frame with text stamped at the G-buffer draws with.
|
|
9
10
|
*
|
|
@@ -39,30 +40,6 @@ export function graph_text_gather_counted(graph: import("../../../engine/graphic
|
|
|
39
40
|
* @returns {number}
|
|
40
41
|
*/
|
|
41
42
|
export function text_site_glyph_count(runtime: import("./GPUTextSystem.js").GPUTextSystem, site: TextSite): number;
|
|
42
|
-
/**
|
|
43
|
-
* The glyphs the frame's camera shows of the texts at one site inside the frame, gathered into a list as
|
|
44
|
-
* {@link graph_text_gather} gathers them: texts along their transforms and texts that face the camera alike, in the
|
|
45
|
-
* order of their rows. A text is shown when the box of its bounds in the world meets the camera's frustum.
|
|
46
|
-
*
|
|
47
|
-
* Call after {@link GPUTextSystem#upload}, so the records are on the device.
|
|
48
|
-
*
|
|
49
|
-
* @param {object} params
|
|
50
|
-
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} params.graph
|
|
51
|
-
* @param {import("./GPUTextSystem.js").GPUTextSystem} params.runtime
|
|
52
|
-
* @param {number} params.scene_database graph handle of the scene database, with this frame's matrices
|
|
53
|
-
* @param {number} params.camera graph handle of the frame's camera uniform
|
|
54
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` of the target the frame is drawn at
|
|
55
|
-
* @param {TextSite} params.site
|
|
56
|
-
* @returns {TextGatherHandles}
|
|
57
|
-
*/
|
|
58
|
-
export function graph_text_gather_scene({ graph, runtime, scene_database, camera, view, site }: {
|
|
59
|
-
graph: import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
60
|
-
runtime: import("./GPUTextSystem.js").GPUTextSystem;
|
|
61
|
-
scene_database: number;
|
|
62
|
-
camera: number;
|
|
63
|
-
view: Float32Array;
|
|
64
|
-
site: TextSite;
|
|
65
|
-
}): TextGatherHandles;
|
|
66
43
|
/**
|
|
67
44
|
* The frame's text at the G-buffer: upload what changed, gather the glyphs the camera shows of the texts stamped
|
|
68
45
|
* onto surfaces, and blend them into the base colour of the surfaces they lie on. A runtime with no glyph at the
|
|
@@ -88,81 +65,24 @@ export function graph_text_stamp({ graph, runtime, scene_database, camera, view,
|
|
|
88
65
|
albedo: number;
|
|
89
66
|
}): number;
|
|
90
67
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
/**
|
|
97
|
-
* The glyphs one view shows of the texts that face the camera at one site, gathered into a list: the count of each
|
|
98
|
-
* text's glyphs that the view shows, the scan of those counts, a thread per glyph that writes it to its place in
|
|
99
|
-
* the list, and a pass that turns the total into the list's indirect draw.
|
|
68
|
+
* The frame's text at the overlay site: upload what changed, gather the view's visible glyphs and draw them
|
|
69
|
+
* onto the canvas, after the tone mapper: the shadows of the texts without a stroke, those texts over them and
|
|
70
|
+
* then, over all, the texts with a stroke. A runtime with no glyph at the site records nothing, and one with no
|
|
71
|
+
* shadow to show records no shadow draw.
|
|
100
72
|
*
|
|
101
|
-
* The
|
|
102
|
-
*
|
|
103
|
-
* not change while both are registered. The list is sized in powers of two for the glyphs the site's texts have,
|
|
104
|
-
* so a count that climbs a little each frame does not make a new buffer each frame.
|
|
105
|
-
*
|
|
106
|
-
* Call after {@link GPUTextSystem#upload}, so the records are on the device.
|
|
107
|
-
*
|
|
108
|
-
* @param {object} params
|
|
109
|
-
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} params.graph
|
|
110
|
-
* @param {import("./GPUTextSystem.js").GPUTextSystem} params.runtime
|
|
111
|
-
* @param {number} params.scene_database graph handle of the scene database, with this frame's matrices
|
|
112
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT`, as `text_view_write` leaves it
|
|
113
|
-
* @param {TextSite} params.site
|
|
114
|
-
* @returns {TextGatherHandles}
|
|
115
|
-
*/
|
|
116
|
-
export function graph_text_gather({ graph, runtime, scene_database, view, site }: {
|
|
117
|
-
graph: import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
118
|
-
runtime: import("./GPUTextSystem.js").GPUTextSystem;
|
|
119
|
-
scene_database: number;
|
|
120
|
-
view: Float32Array;
|
|
121
|
-
site: TextSite;
|
|
122
|
-
}): TextGatherHandles;
|
|
123
|
-
/**
|
|
124
|
-
* Draw the gathered glyphs of the texts that face the camera at one site over a colour target, each blended by its
|
|
125
|
-
* coverage over what the target holds, in the list's order: where two glyphs overlap, the later one is on top. No
|
|
126
|
-
* depth is tested or written.
|
|
127
|
-
*
|
|
128
|
-
* One call draws the texts that have a stroke or the ones that have none; the list holds both, and a draw gives the
|
|
129
|
-
* other's glyphs no area.
|
|
130
|
-
*
|
|
131
|
-
* @param {object} params
|
|
132
|
-
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} params.graph
|
|
133
|
-
* @param {import("./GPUTextSystem.js").GPUTextSystem} params.runtime
|
|
134
|
-
* @param {TextGatherHandles} params.gather the view's lists, gathered for `site`
|
|
135
|
-
* @param {number} params.scene_database graph handle of the scene database
|
|
136
|
-
* @param {GPUBuffer} params.shapes the shape buffer, as {@link GPUTextSystem#upload} returned it
|
|
137
|
-
* @param {Float32Array} params.view the `TEXT_VIEW_STRUCT` the lists were gathered with
|
|
138
|
-
* @param {number} params.color graph handle of the colour target
|
|
139
|
-
* @param {boolean} params.stroked which of the two: the texts with a stroke, each drawn with it under its fill
|
|
140
|
-
* @returns {number} graph handle of the colour target, after the draw
|
|
141
|
-
*/
|
|
142
|
-
export function graph_text_draw_facing({ graph, runtime, gather, scene_database, shapes, view, color, stroked }: {
|
|
143
|
-
graph: import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
144
|
-
runtime: import("./GPUTextSystem.js").GPUTextSystem;
|
|
145
|
-
gather: TextGatherHandles;
|
|
146
|
-
scene_database: number;
|
|
147
|
-
shapes: GPUBuffer;
|
|
148
|
-
view: Float32Array;
|
|
149
|
-
color: number;
|
|
150
|
-
stroked: boolean;
|
|
151
|
-
}): number;
|
|
152
|
-
/**
|
|
153
|
-
* The frame's text at the after-upscale site: upload what changed, gather the view's visible glyphs and draw them
|
|
154
|
-
* over the scene colour, the texts without a stroke and then, over them, the ones with. A runtime with no glyph at
|
|
155
|
-
* the site records nothing.
|
|
73
|
+
* The canvas holds display values, and the draws blend in them, as a page's content is blended: a text at half
|
|
74
|
+
* its opacity shows midway between its colour and what is under it.
|
|
156
75
|
*
|
|
157
76
|
* @param {object} params
|
|
158
77
|
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} params.graph
|
|
159
78
|
* @param {import("./GPUTextSystem.js").GPUTextSystem} params.runtime
|
|
160
79
|
* @param {number} params.scene_database graph handle of the scene database, with this frame's matrices
|
|
161
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` for the
|
|
162
|
-
*
|
|
163
|
-
* @
|
|
80
|
+
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` for the canvas, as `text_view_write` leaves it, with the
|
|
81
|
+
* matrix to the canvas's primaries
|
|
82
|
+
* @param {number} params.color graph handle of the canvas, tone mapped
|
|
83
|
+
* @returns {number} graph handle of the canvas, after the text
|
|
164
84
|
*/
|
|
165
|
-
export function
|
|
85
|
+
export function graph_text_overlay({ graph, runtime, scene_database, view, color }: {
|
|
166
86
|
graph: import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
167
87
|
runtime: import("./GPUTextSystem.js").GPUTextSystem;
|
|
168
88
|
scene_database: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_text.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/text/graph_text.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_text.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/text/graph_text.js"],"names":[],"mappings":"AA6HA;;;;;GAKG;AACH,wDAFW,OAAO,0CAA0C,EAAE,eAAe,QAiB5E;AAQD;;;;GAIG;AACH,sDAFW,OAAO,0CAA0C,EAAE,eAAe,QAU5E;AAED;;;;;;GAMG;AACH,+CAJW,OAAO,2DAA2D,EAAE,UAAU,YAC9E,MAAM,GACJ,MAAM,CAWlB;AAED;;;;;;;;;;;GAWG;AACH,iDARW,OAAO,2DAA2D,EAAE,UAAU,WAC9E,OAAO,oBAAoB,EAAE,aAAa,iBAC1C,MAAM,gBACN,MAAM,YACN,MAAM,UACN,MAAM,GACJ,iBAAiB,CA6C7B;AAsBD;;;;;;GAMG;AACH,+CAJW,OAAO,oBAAoB,EAAE,aAAa,QAC1C,QAAQ,GACN,MAAM,CASlB;AAwFD;;;;;;;;;;;;;;GAcG;AACH;IATkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IAC3B,OAAO,EAA1D,OAAO,oBAAoB,EAAE,aAAa;IAC3B,cAAc,EAA7B,MAAM;IACS,MAAM,EAArB,MAAM;IACe,IAAI,EAAzB,YAAY;IACG,KAAK,EAApB,MAAM;IACS,MAAM,EAArB,MAAM;IACJ,MAAM,CA+BlB;AA+FD;;;;;;;;;;;;;;;;;GAiBG;AACH;IARkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IAC3B,OAAO,EAA1D,OAAO,oBAAoB,EAAE,aAAa;IAC3B,cAAc,EAA7B,MAAM;IACe,IAAI,EAAzB,YAAY;IAEG,KAAK,EAApB,MAAM;IACJ,MAAM,CAiClB;;;;;mBA5Ia,MAAM;;;;gBACN,MAAM;;;;UACN,MAAM;;yBA/YqC,uBAAuB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assert } from "../../../core/assert.js";
|
|
2
2
|
import { align_4 } from "../../../core/binary/align_4.js";
|
|
3
|
+
import { ceilPowerOfTwo } from "../../../core/binary/operations/ceilPowerOfTwo.js";
|
|
3
4
|
import { TextureViewDescriptor } from "../../descriptor/texture/TextureViewDescriptor.js";
|
|
4
5
|
import { BufferResourceDescriptor } from "../../device/graph/BufferResourceDescriptor.js";
|
|
5
6
|
import { DEFAULT_DEPTH_TEXTURE_VIEW } from "../depth/DEFAULT_DEPTH_TEXTURE_VIEW.js";
|
|
@@ -21,6 +22,7 @@ import { shader_text_count_scene, TEXT_COUNT_SCENE_WORKGROUP_SIZE } from "./shad
|
|
|
21
22
|
import { shader_text_draw_args, TEXT_DRAW_ARGS_WORDS } from "./shaders/shader_text_draw_args.js";
|
|
22
23
|
import { shader_text_expand } from "./shaders/shader_text_expand.js";
|
|
23
24
|
import { TEXT_FACING_DRAW_RESOURCES, text_facing_draw_pipeline } from "./shaders/shader_text_facing_draw.js";
|
|
25
|
+
import { text_facing_draw_shadow_pipeline } from "./shaders/shader_text_facing_draw_shadow.js";
|
|
24
26
|
import { text_facing_draw_stroked_pipeline } from "./shaders/shader_text_facing_draw_stroked.js";
|
|
25
27
|
import {
|
|
26
28
|
TEXT_STAMP_BIND_GROUP_SCENE,
|
|
@@ -61,7 +63,7 @@ function execute_count(data, resources, context) {
|
|
|
61
63
|
text_database: resources.get(data.text_database),
|
|
62
64
|
scene_database: resources.get(data.scene_database),
|
|
63
65
|
counts: resources.get(data.counts),
|
|
64
|
-
settings: {
|
|
66
|
+
settings: { capacity: data.capacity },
|
|
65
67
|
},
|
|
66
68
|
group_count_x: data.group_count,
|
|
67
69
|
group_count_y: 1,
|
|
@@ -122,37 +124,24 @@ function execute_draw_facing(data, resources, context) {
|
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
128
|
-
function power_of_two_at_least(x) {
|
|
129
|
-
let p = 1;
|
|
130
|
-
|
|
131
|
-
while (p < x) {
|
|
132
|
-
p *= 2;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return p;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The format the scene's colour is carried in, before the upscale and after it.
|
|
140
|
-
* @type {GPUTextureFormat}
|
|
141
|
-
*/
|
|
142
|
-
const SCENE_COLOR_FORMAT = "rgba16float";
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* The pipelines a frame with text at the after-upscale site draws with.
|
|
127
|
+
* The pipelines a frame with text at the overlay site draws with. The draws are onto the canvas, so they are
|
|
128
|
+
* offered for the format the enquiry says the canvas has, and not at all when it names none.
|
|
146
129
|
*
|
|
147
130
|
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
148
131
|
*/
|
|
149
|
-
export function
|
|
132
|
+
export function enquire_text_overlay_pipelines(enquiry) {
|
|
150
133
|
enquiry.compute.push(shader_text_count.pipeline);
|
|
151
134
|
enquiry.compute.push(shader_prefix_sum_to_command.pipeline);
|
|
152
135
|
enquiry.compute.push(shader_text_expand.pipeline);
|
|
153
136
|
enquiry.compute.push(shader_text_draw_args.pipeline);
|
|
154
|
-
|
|
155
|
-
enquiry.
|
|
137
|
+
|
|
138
|
+
const format = enquiry.presentation_format;
|
|
139
|
+
|
|
140
|
+
if (format !== null) {
|
|
141
|
+
enquiry.render.push(text_facing_draw_shadow_pipeline(format));
|
|
142
|
+
enquiry.render.push(text_facing_draw_pipeline(format));
|
|
143
|
+
enquiry.render.push(text_facing_draw_stroked_pipeline(format));
|
|
144
|
+
}
|
|
156
145
|
|
|
157
146
|
enquire_prefix_scan_csdldf_pipelines(enquiry);
|
|
158
147
|
}
|
|
@@ -226,7 +215,7 @@ export function graph_text_gather_counted(graph, runtime, text_database, glyph_c
|
|
|
226
215
|
group_count: [1, 1, 1],
|
|
227
216
|
}).command;
|
|
228
217
|
|
|
229
|
-
const list_bytes =
|
|
218
|
+
const list_bytes = ceilPowerOfTwo(Math.max(GLYPH_LIST_MIN_ENTRIES, glyphs)) * 4;
|
|
230
219
|
|
|
231
220
|
const expand_data = {};
|
|
232
221
|
|
|
@@ -265,7 +254,7 @@ function execute_count_scene(data, resources, context) {
|
|
|
265
254
|
text_database: resources.get(data.text_database),
|
|
266
255
|
scene_database: resources.get(data.scene_database),
|
|
267
256
|
counts: resources.get(data.counts),
|
|
268
|
-
settings: {
|
|
257
|
+
settings: { capacity: data.capacity },
|
|
269
258
|
},
|
|
270
259
|
group_count_x: data.group_count,
|
|
271
260
|
group_count_y: 1,
|
|
@@ -290,22 +279,18 @@ export function text_site_glyph_count(runtime, site) {
|
|
|
290
279
|
}
|
|
291
280
|
|
|
292
281
|
/**
|
|
293
|
-
* The glyphs the frame's camera shows of the texts at
|
|
294
|
-
* {@link
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
* Call after {@link GPUTextSystem#upload}, so the records are on the device.
|
|
282
|
+
* The glyphs the frame's camera shows of the texts stamped at the G-buffer, gathered into a list as
|
|
283
|
+
* {@link gather_overlay} gathers its own, in the order of their rows. A text is shown when the box of its bounds in
|
|
284
|
+
* the world meets the camera's frustum.
|
|
298
285
|
*
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {import("
|
|
301
|
-
* @param {
|
|
302
|
-
* @param {number}
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` of the target the frame is drawn at
|
|
305
|
-
* @param {TextSite} params.site
|
|
286
|
+
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} graph
|
|
287
|
+
* @param {import("./GPUTextSystem.js").GPUTextSystem} runtime its records on the device already
|
|
288
|
+
* @param {number} scene_database graph handle of the scene database, with this frame's matrices
|
|
289
|
+
* @param {number} camera graph handle of the frame's camera uniform
|
|
290
|
+
* @param {Float32Array} view a `TEXT_VIEW_STRUCT` of the target the G-buffer is drawn at
|
|
306
291
|
* @returns {TextGatherHandles}
|
|
307
292
|
*/
|
|
308
|
-
|
|
293
|
+
function gather_stamp(graph, runtime, scene_database, camera, view) {
|
|
309
294
|
assert.isNonNegativeInteger(scene_database, "scene_database");
|
|
310
295
|
assert.isNonNegativeInteger(camera, "camera");
|
|
311
296
|
assert.greaterThanOrEqual(view.length, TEXT_VIEW_FLOATS, "view.length");
|
|
@@ -321,7 +306,7 @@ export function graph_text_gather_scene({ graph, runtime, scene_database, camera
|
|
|
321
306
|
|
|
322
307
|
// a table with no pages has nothing to visit: the cleared counts scan to zero
|
|
323
308
|
if (group_count > 0) {
|
|
324
|
-
const count_data = { view,
|
|
309
|
+
const count_data = { view, capacity, group_count };
|
|
325
310
|
|
|
326
311
|
const count = graph.add("Text Count / scene", count_data, execute_count_scene);
|
|
327
312
|
|
|
@@ -334,7 +319,7 @@ export function graph_text_gather_scene({ graph, runtime, scene_database, camera
|
|
|
334
319
|
glyph_counts = count_data.counts;
|
|
335
320
|
}
|
|
336
321
|
|
|
337
|
-
return graph_text_gather_counted(graph, runtime, text_database, glyph_counts, capacity, text_site_glyph_count(runtime,
|
|
322
|
+
return graph_text_gather_counted(graph, runtime, text_database, glyph_counts, capacity, text_site_glyph_count(runtime, TextSite.GBuffer));
|
|
338
323
|
}
|
|
339
324
|
|
|
340
325
|
function execute_stamp(data, resources, context) {
|
|
@@ -400,13 +385,11 @@ export function graph_text_stamp({ graph, runtime, scene_database, camera, view,
|
|
|
400
385
|
|
|
401
386
|
const shapes = runtime.upload();
|
|
402
387
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
if (text_site_glyph_count(runtime, site) === 0) {
|
|
388
|
+
if (text_site_glyph_count(runtime, TextSite.GBuffer) === 0) {
|
|
406
389
|
return albedo;
|
|
407
390
|
}
|
|
408
391
|
|
|
409
|
-
const gather =
|
|
392
|
+
const gather = gather_stamp(graph, runtime, scene_database, camera, view);
|
|
410
393
|
|
|
411
394
|
const data = { view };
|
|
412
395
|
|
|
@@ -435,26 +418,22 @@ export function graph_text_stamp({ graph, runtime, scene_database, camera, view,
|
|
|
435
418
|
*/
|
|
436
419
|
|
|
437
420
|
/**
|
|
438
|
-
* The glyphs
|
|
439
|
-
*
|
|
440
|
-
*
|
|
421
|
+
* The glyphs the view shows of the texts over the finished frame, gathered into a list: the count of each text's
|
|
422
|
+
* glyphs that the view shows, the scan of those counts, a thread per glyph that writes it to its place in the list,
|
|
423
|
+
* and a pass that turns the total into the list's indirect draw.
|
|
441
424
|
*
|
|
442
425
|
* The list holds the texts in the order of their rows in the text table, stroked or not, each text's glyphs in the
|
|
443
|
-
* order of its run. A row is the table's to hand out, so which of two texts comes first is not their owner's to
|
|
444
|
-
* not change while both are registered. The list is sized in powers of two for the glyphs the
|
|
445
|
-
* so a count that climbs a little each frame does not make a new buffer each frame.
|
|
446
|
-
*
|
|
447
|
-
* Call after {@link GPUTextSystem#upload}, so the records are on the device.
|
|
426
|
+
* order of its run. A row is the table's to hand out, so which of two texts comes first is not their owner's to
|
|
427
|
+
* choose; it does not change while both are registered. The list is sized in powers of two for the glyphs the
|
|
428
|
+
* site's texts have, so a count that climbs a little each frame does not make a new buffer each frame.
|
|
448
429
|
*
|
|
449
|
-
* @param {
|
|
450
|
-
* @param {import("
|
|
451
|
-
* @param {
|
|
452
|
-
* @param {
|
|
453
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT`, as `text_view_write` leaves it
|
|
454
|
-
* @param {TextSite} params.site
|
|
430
|
+
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} graph
|
|
431
|
+
* @param {import("./GPUTextSystem.js").GPUTextSystem} runtime its records on the device already
|
|
432
|
+
* @param {number} scene_database graph handle of the scene database, with this frame's matrices
|
|
433
|
+
* @param {Float32Array} view a `TEXT_VIEW_STRUCT`, as `text_view_write` leaves it
|
|
455
434
|
* @returns {TextGatherHandles}
|
|
456
435
|
*/
|
|
457
|
-
|
|
436
|
+
function gather_overlay(graph, runtime, scene_database, view) {
|
|
458
437
|
assert.isNonNegativeInteger(scene_database, "scene_database");
|
|
459
438
|
assert.greaterThanOrEqual(view.length, TEXT_VIEW_FLOATS, "view.length");
|
|
460
439
|
|
|
@@ -469,7 +448,7 @@ export function graph_text_gather({ graph, runtime, scene_database, view, site }
|
|
|
469
448
|
|
|
470
449
|
// a table with no pages has nothing to visit: the cleared counts scan to zero
|
|
471
450
|
if (group_count > 0) {
|
|
472
|
-
const count_data = { view,
|
|
451
|
+
const count_data = { view, capacity, group_count };
|
|
473
452
|
|
|
474
453
|
const count = graph.add("Text Count", count_data, execute_count);
|
|
475
454
|
|
|
@@ -482,54 +461,41 @@ export function graph_text_gather({ graph, runtime, scene_database, view, site }
|
|
|
482
461
|
}
|
|
483
462
|
|
|
484
463
|
// room for every glyph the site's texts that face the camera have, stroked or not
|
|
485
|
-
const glyphs = runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera,
|
|
486
|
-
+ runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera,
|
|
464
|
+
const glyphs = runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera, TextSite.Overlay, false)]
|
|
465
|
+
+ runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera, TextSite.Overlay, true)];
|
|
487
466
|
|
|
488
467
|
return graph_text_gather_counted(graph, runtime, text_database, glyph_counts, capacity, glyphs);
|
|
489
468
|
}
|
|
490
469
|
|
|
491
470
|
/**
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* depth is tested or written.
|
|
471
|
+
* One draw of the gathered glyphs onto the canvas, each blended by its coverage over what the canvas holds, in
|
|
472
|
+
* the list's order: where two glyphs overlap, the later one is on top. No depth is tested or written.
|
|
495
473
|
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
474
|
+
* The list holds every text of the site. Which of them a draw gives any area is its pipeline's to say: the texts
|
|
475
|
+
* without a stroke, the ones with, or the shadows of the ones that have one.
|
|
498
476
|
*
|
|
499
|
-
* @param {
|
|
500
|
-
* @param {import("
|
|
501
|
-
* @param {
|
|
502
|
-
* @param {
|
|
503
|
-
* @param {
|
|
504
|
-
* @param {
|
|
505
|
-
* @param {
|
|
506
|
-
* @param {
|
|
507
|
-
* @param {
|
|
508
|
-
* @returns {number} graph handle of the
|
|
477
|
+
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} graph
|
|
478
|
+
* @param {import("./GPUTextSystem.js").GPUTextSystem} runtime
|
|
479
|
+
* @param {TextGatherHandles} gather
|
|
480
|
+
* @param {number} scene_database graph handle of the scene database
|
|
481
|
+
* @param {GPUBuffer} shapes the shape buffer, as {@link GPUTextSystem#upload} returned it
|
|
482
|
+
* @param {Float32Array} view the `TEXT_VIEW_STRUCT` the list was gathered with
|
|
483
|
+
* @param {number} color graph handle of the canvas
|
|
484
|
+
* @param {string} label
|
|
485
|
+
* @param {function(GPUTextureFormat): import("../../descriptor/pipeline/render/RenderPipelineDescriptor.js").RenderPipelineDescriptor} pipeline_of
|
|
486
|
+
* @returns {number} graph handle of the canvas, after the draw
|
|
509
487
|
*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
assert.defined(shapes, "shapes");
|
|
513
|
-
|
|
514
|
-
const gr_glyphs = graph_import_buffer(graph, runtime.glyphs.buffer, "text/glyphs");
|
|
515
|
-
const gr_shapes = graph_import_buffer(graph, shapes, "text/shapes");
|
|
516
|
-
|
|
517
|
-
const label = stroked ? "Text Draw / facing, stroked" : "Text Draw / facing";
|
|
518
|
-
|
|
519
|
-
const data = {
|
|
520
|
-
view,
|
|
521
|
-
label,
|
|
522
|
-
pipeline_of: stroked ? text_facing_draw_stroked_pipeline : text_facing_draw_pipeline,
|
|
523
|
-
};
|
|
488
|
+
function draw_facing(graph, runtime, gather, scene_database, shapes, view, color, label, pipeline_of) {
|
|
489
|
+
const data = { view, label, pipeline_of };
|
|
524
490
|
|
|
525
491
|
const pass = graph.add(label, data, execute_draw_facing);
|
|
526
492
|
|
|
527
493
|
data.glyph_list = pass.read(gather.glyph_list);
|
|
528
494
|
data.args = pass.read(gather.args);
|
|
529
|
-
data.glyphs = pass.read(
|
|
495
|
+
data.glyphs = pass.read(graph_import_buffer(graph, runtime.glyphs.buffer, "text/glyphs"));
|
|
530
496
|
data.text_database = pass.read(gather.text_database);
|
|
531
497
|
data.scene_database = pass.read(scene_database);
|
|
532
|
-
data.shapes = pass.read(
|
|
498
|
+
data.shapes = pass.read(graph_import_buffer(graph, shapes, "text/shapes"));
|
|
533
499
|
|
|
534
500
|
pass.read(color);
|
|
535
501
|
data.color = pass.write(color);
|
|
@@ -538,22 +504,29 @@ export function graph_text_draw_facing({ graph, runtime, gather, scene_database,
|
|
|
538
504
|
}
|
|
539
505
|
|
|
540
506
|
/**
|
|
541
|
-
* The frame's text at the
|
|
542
|
-
*
|
|
543
|
-
* the site records nothing
|
|
507
|
+
* The frame's text at the overlay site: upload what changed, gather the view's visible glyphs and draw them
|
|
508
|
+
* onto the canvas, after the tone mapper: the shadows of the texts without a stroke, those texts over them and
|
|
509
|
+
* then, over all, the texts with a stroke. A runtime with no glyph at the site records nothing, and one with no
|
|
510
|
+
* shadow to show records no shadow draw.
|
|
511
|
+
*
|
|
512
|
+
* The canvas holds display values, and the draws blend in them, as a page's content is blended: a text at half
|
|
513
|
+
* its opacity shows midway between its colour and what is under it.
|
|
544
514
|
*
|
|
545
515
|
* @param {object} params
|
|
546
516
|
* @param {import("../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} params.graph
|
|
547
517
|
* @param {import("./GPUTextSystem.js").GPUTextSystem} params.runtime
|
|
548
518
|
* @param {number} params.scene_database graph handle of the scene database, with this frame's matrices
|
|
549
|
-
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` for the
|
|
550
|
-
*
|
|
551
|
-
* @
|
|
519
|
+
* @param {Float32Array} params.view a `TEXT_VIEW_STRUCT` for the canvas, as `text_view_write` leaves it, with the
|
|
520
|
+
* matrix to the canvas's primaries
|
|
521
|
+
* @param {number} params.color graph handle of the canvas, tone mapped
|
|
522
|
+
* @returns {number} graph handle of the canvas, after the text
|
|
552
523
|
*/
|
|
553
|
-
export function
|
|
524
|
+
export function graph_text_overlay({ graph, runtime, scene_database, view, color }) {
|
|
525
|
+
assert.isNonNegativeInteger(color, "color");
|
|
526
|
+
|
|
554
527
|
const shapes = runtime.upload();
|
|
555
528
|
|
|
556
|
-
const site = TextSite.
|
|
529
|
+
const site = TextSite.Overlay;
|
|
557
530
|
|
|
558
531
|
const plain = runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera, site, false)];
|
|
559
532
|
const stroked = runtime.class_glyph_counts[text_draw_class(TextPlacement.FacingCamera, site, true)];
|
|
@@ -562,16 +535,20 @@ export function graph_text_after_upscale({ graph, runtime, scene_database, view,
|
|
|
562
535
|
return color;
|
|
563
536
|
}
|
|
564
537
|
|
|
565
|
-
const gather =
|
|
538
|
+
const gather = gather_overlay(graph, runtime, scene_database, view);
|
|
566
539
|
|
|
567
540
|
let drawn = color;
|
|
568
541
|
|
|
542
|
+
if (runtime.class_shadow_glyph_counts[text_draw_class(TextPlacement.FacingCamera, site, false)] > 0) {
|
|
543
|
+
drawn = draw_facing(graph, runtime, gather, scene_database, shapes, view, drawn, "Text Draw / facing, shadow", text_facing_draw_shadow_pipeline);
|
|
544
|
+
}
|
|
545
|
+
|
|
569
546
|
if (plain > 0) {
|
|
570
|
-
drawn =
|
|
547
|
+
drawn = draw_facing(graph, runtime, gather, scene_database, shapes, view, drawn, "Text Draw / facing", text_facing_draw_pipeline);
|
|
571
548
|
}
|
|
572
549
|
|
|
573
550
|
if (stroked > 0) {
|
|
574
|
-
drawn =
|
|
551
|
+
drawn = draw_facing(graph, runtime, gather, scene_database, shapes, view, drawn, "Text Draw / facing, stroked", text_facing_draw_stroked_pipeline);
|
|
575
552
|
}
|
|
576
553
|
|
|
577
554
|
return drawn;
|
|
@@ -7,7 +7,7 @@ export function enquire_text_avboit_pipelines(enquiry: import("../../device/pipe
|
|
|
7
7
|
/**
|
|
8
8
|
* The text's part of the transparency pipeline's occupancy, and this view's glyph list: a count pass that marks
|
|
9
9
|
* the depth slices of every text the camera shows among the transparent things, then the list of their glyphs
|
|
10
|
-
* and its indirect draw, as
|
|
10
|
+
* and its indirect draw, as the other sites' gathers make them.
|
|
11
11
|
*
|
|
12
12
|
* Call after {@link GPUTextSystem#upload}, with at least one glyph at the transparency site.
|
|
13
13
|
*
|
|
@@ -73,7 +73,7 @@ function execute_count(data, resources, context) {
|
|
|
73
73
|
/**
|
|
74
74
|
* The text's part of the transparency pipeline's occupancy, and this view's glyph list: a count pass that marks
|
|
75
75
|
* the depth slices of every text the camera shows among the transparent things, then the list of their glyphs
|
|
76
|
-
* and its indirect draw, as
|
|
76
|
+
* and its indirect draw, as the other sites' gathers make them.
|
|
77
77
|
*
|
|
78
78
|
* Call after {@link GPUTextSystem#upload}, with at least one glyph at the transparency site.
|
|
79
79
|
*
|
|
@@ -45,6 +45,17 @@ export class TextParameters {
|
|
|
45
45
|
* @type {Float32Array}
|
|
46
46
|
*/
|
|
47
47
|
stroke_color: Float32Array;
|
|
48
|
+
/**
|
|
49
|
+
* How far the text's shadow is from the text, right and up on the screen, in {@link size_unit}. The shadow is
|
|
50
|
+
* the text's own outlines drawn again under every text, as sharp as the text. None at (0, 0).
|
|
51
|
+
* @type {Float32Array}
|
|
52
|
+
*/
|
|
53
|
+
shadow_offset: Float32Array;
|
|
54
|
+
/**
|
|
55
|
+
* The shadow's linear RGB, unbounded, and how opaque it is under a text of full opacity.
|
|
56
|
+
* @type {Float32Array}
|
|
57
|
+
*/
|
|
58
|
+
shadow_color: Float32Array;
|
|
48
59
|
/**
|
|
49
60
|
* @param {TextParameters} other
|
|
50
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/runtime/TextParameters.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH;IACI,uEAAuE;IACvE,MADW,MAAM,CACP;IAEV,0GAA0G;IAC1G,UADW,OAAO,mCAAmC,EAAE,QAAQ,GAAC,IAAI,CACpD;IAEhB;;;;OAIG;IACH,OAFU,MAAM,CAEN;IAEV,2FAA2F;IAC3F,UADW,YAAY,CACe;IAEtC,kDAAkD;IAClD,MADW,MAAM,CACR;IAET,2BAA2B;IAC3B,WADW,YAAY,CACQ;IAE/B;;;;OAIG;IACH,QAFU,YAAY,CAEO;IAE7B,4BAA4B;IAC5B,WADW,aAAa,CACiB;IAEzC,uBAAuB;IACvB,MADW,QAAQ,CACK;IAExB,iHAAiH;IACjH,OADW,YAAY,CACgB;IAEvC;;;;OAIG;IACH,cAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,cAFU,YAAY,CAEwB;IAE9C;;OAEG;IACH,YAFW,cAAc,
|
|
1
|
+
{"version":3,"file":"TextParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/runtime/TextParameters.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH;IACI,uEAAuE;IACvE,MADW,MAAM,CACP;IAEV,0GAA0G;IAC1G,UADW,OAAO,mCAAmC,EAAE,QAAQ,GAAC,IAAI,CACpD;IAEhB;;;;OAIG;IACH,OAFU,MAAM,CAEN;IAEV,2FAA2F;IAC3F,UADW,YAAY,CACe;IAEtC,kDAAkD;IAClD,MADW,MAAM,CACR;IAET,2BAA2B;IAC3B,WADW,YAAY,CACQ;IAE/B;;;;OAIG;IACH,QAFU,YAAY,CAEO;IAE7B,4BAA4B;IAC5B,WADW,aAAa,CACiB;IAEzC,uBAAuB;IACvB,MADW,QAAQ,CACK;IAExB,iHAAiH;IACjH,OADW,YAAY,CACgB;IAEvC;;;;OAIG;IACH,cAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,cAFU,YAAY,CAEwB;IAE9C;;;;OAIG;IACH,eAFU,YAAY,CAEc;IAEpC;;;OAGG;IACH,cAFU,YAAY,CAEwB;IAE9C;;OAEG;IACH,YAFW,cAAc,QAmBxB;IAED;;;;;OAKG;IACH,mBAHW,cAAc,GACZ,OAAO,CAOnB;IAED;;;OAGG;IACH,cAHW,cAAc,GACZ,OAAO,CA2BnB;CACJ;6BA3ImE,wBAAwB;6BAAxB,wBAAwB;8BAAxB,wBAAwB;yBAAxB,wBAAwB"}
|
|
@@ -60,6 +60,19 @@ export class TextParameters {
|
|
|
60
60
|
*/
|
|
61
61
|
stroke_color = new Float32Array([0, 0, 0, 1]);
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* How far the text's shadow is from the text, right and up on the screen, in {@link size_unit}. The shadow is
|
|
65
|
+
* the text's own outlines drawn again under every text, as sharp as the text. None at (0, 0).
|
|
66
|
+
* @type {Float32Array}
|
|
67
|
+
*/
|
|
68
|
+
shadow_offset = new Float32Array(2);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The shadow's linear RGB, unbounded, and how opaque it is under a text of full opacity.
|
|
72
|
+
* @type {Float32Array}
|
|
73
|
+
*/
|
|
74
|
+
shadow_color = new Float32Array([0, 0, 0, 1]);
|
|
75
|
+
|
|
63
76
|
/**
|
|
64
77
|
* @param {TextParameters} other
|
|
65
78
|
*/
|
|
@@ -77,6 +90,9 @@ export class TextParameters {
|
|
|
77
90
|
this.color.set(other.color);
|
|
78
91
|
this.stroke_width = other.stroke_width;
|
|
79
92
|
this.stroke_color.set(other.stroke_color);
|
|
93
|
+
this.shadow_offset[0] = other.shadow_offset[0];
|
|
94
|
+
this.shadow_offset[1] = other.shadow_offset[1];
|
|
95
|
+
this.shadow_color.set(other.shadow_color);
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
/**
|
|
@@ -114,6 +130,12 @@ export class TextParameters {
|
|
|
114
130
|
&& this.stroke_color[0] === other.stroke_color[0]
|
|
115
131
|
&& this.stroke_color[1] === other.stroke_color[1]
|
|
116
132
|
&& this.stroke_color[2] === other.stroke_color[2]
|
|
117
|
-
&& this.stroke_color[3] === other.stroke_color[3]
|
|
133
|
+
&& this.stroke_color[3] === other.stroke_color[3]
|
|
134
|
+
&& this.shadow_offset[0] === other.shadow_offset[0]
|
|
135
|
+
&& this.shadow_offset[1] === other.shadow_offset[1]
|
|
136
|
+
&& this.shadow_color[0] === other.shadow_color[0]
|
|
137
|
+
&& this.shadow_color[1] === other.shadow_color[1]
|
|
138
|
+
&& this.shadow_color[2] === other.shadow_color[2]
|
|
139
|
+
&& this.shadow_color[3] === other.shadow_color[3];
|
|
118
140
|
}
|
|
119
141
|
}
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* @param {number} viewport_height in target pixels
|
|
8
8
|
* @param {number} projection_scale element 5 of the column-major projection matrix
|
|
9
9
|
* @param {number} pixels_per_css_pixel
|
|
10
|
+
* @param {ArrayLike<number>} target_from_rec709 the matrix from linear Rec. 709 to the target's linear primaries,
|
|
11
|
+
* nine floats, a column after a column
|
|
10
12
|
*/
|
|
11
|
-
export function text_view_write(out: Float32Array, view_projection: ArrayLike<number>, viewport_width: number, viewport_height: number, projection_scale: number, pixels_per_css_pixel: number): void;
|
|
13
|
+
export function text_view_write(out: Float32Array, view_projection: ArrayLike<number>, viewport_width: number, viewport_height: number, projection_scale: number, pixels_per_css_pixel: number, target_from_rec709: ArrayLike<number>): void;
|
|
12
14
|
/**
|
|
13
15
|
* The view as text placed on the target reads it.
|
|
14
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TEXT_VIEW_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TEXT_VIEW_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;GAWG;AACH,qCATW,YAAY,mBACZ,UAAU,MAAM,CAAC,kBACjB,MAAM,mBACN,MAAM,oBACN,MAAM,wBACN,MAAM,sBACN,UAAU,MAAM,CAAC,QAyB3B;AAjED;;;;;GAKG;AACH,4CAiBe;AAEf;;;GAGG;AACH,+BAFU,MAAM,CAE0C;6BA/B7B,mCAAmC"}
|