Skip to content

Commit 77f005b

Browse files
committed
Change model selection
1 parent 22a7e41 commit 77f005b

39 files changed

Lines changed: 2166 additions & 256 deletions

.github/workflows/githubActions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [20.x]
12+
node-version: [22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

dist/spector.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/spector.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,26 @@ export interface IContextCapture {
6868
}
6969

7070

71+
export interface IShaderCapture {
72+
COMPILE_STATUS: boolean | null;
73+
shaderType: string;
74+
name: string;
75+
source: string;
76+
translatedSource: string;
77+
infoLog: string;
78+
}
79+
export interface IProgramStatus {
80+
LINK_STATUS: boolean;
81+
VALIDATE_STATUS: boolean;
82+
infoLog: string;
83+
}
84+
export interface IProgramCapture {
85+
programStatus: IProgramStatus;
86+
shaders: IShaderCapture[];
87+
length: number;
88+
}
89+
90+
7191
export type State = {
7292
[stateName: string]: any;
7393
};
@@ -96,6 +116,8 @@ export interface ICommandCapture extends State {
96116
text: string;
97117
marker: string;
98118
consumeCommandId?: number;
119+
shader?: IShaderCapture;
120+
program?: IProgramCapture;
99121
[stateName: string]: any;
100122
}
101123

@@ -405,6 +427,10 @@ export interface ISourceCodeState extends ISourceCodeChangeEvent {
405427
editable: boolean;
406428
beautify: boolean;
407429
preprocessed: boolean;
430+
singleShader: boolean;
431+
sourceVertexLog: string;
432+
sourceFragmentLog: string;
433+
programLog: string;
408434
}
409435
/** Non-premultiplied raw texel data preserved for the texture viewer (#183). */
410436
export interface IRawImagePixels {
@@ -432,6 +458,11 @@ export type JSONRenderItem = {
432458
key: string;
433459
value: string;
434460
help: string;
461+
} | {
462+
type: "shaderSource";
463+
key: string;
464+
shader: IShaderCapture;
465+
programLog?: string;
435466
} | {
436467
type: "visualState";
437468
visualState: any;
@@ -603,6 +634,10 @@ export declare class ReactResultView {
603634
handleVertexSelected: (commandIndex: number) => void;
604635
/** Called by React when a shader link is clicked (fragment). */
605636
handleFragmentSelected: (commandIndex: number) => void;
637+
/** Called when a shader-related command's source link is clicked. */
638+
handleShaderSelected: (commandIndex: number) => void;
639+
/** Called when a shader source link in command details is clicked. */
640+
handleShaderSourceOpen: (shader: IShaderCapture, programLog?: string) => void;
606641
/** Called by React when source code is edited. */
607642
handleSourceCodeChanged: (event: ISourceCodeChangeEvent) => void;
608643
/** Called by React when source code close button is clicked. */
@@ -634,6 +669,7 @@ export declare class ReactResultView {
634669
private _displayEndState;
635670
private _displayCurrentCapture;
636671
private _openShader;
672+
private _openCapturedShader;
637673
private _buildCommandDetail;
638674
/**
639675
* Lazily resolve a command's stack-trace frames through source maps (#98).

dist/spector.worker.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

documentation/changeLogs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Please, find below the per release summary of the contribution added to the proj
66

77
## v0.9.33
88

9+
* Improve [shader debugging](https://github.com/BabylonJS/Spector.js/issues/283) with source links, compiler diagnostics, and parser-backed formatting
910
* Add [Texture inspection tool](https://github.com/BabylonJS/Spector.js/issues/183)
1011
* Add [Capture comparison tool](https://github.com/BabylonJS/Spector.js/issues/155)
1112
* Add [Source Map support in the stacktrace](https://github.com/BabylonJS/Spector.js/issues/98)

extensions/spector.bundle.func.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/spector.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/spector.worker.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)