-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
68 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export type { IShaderInfo } from "./IShaderInfo"; | ||
export type { IShaderLab } from "./IShaderLab"; | ||
export type { ShaderStruct } from "./shaderStruct/ShaderStruct"; | ||
export type { ShaderContent } from "./shaderContent/ShaderContent"; | ||
export { CodeGenBackEnd } from "./Backend"; | ||
export { Statement } from "./shaderContent/Statement"; | ||
export { SubShaderContent } from "./shaderContent/SubShaderContent"; | ||
export { PassContent } from "./shaderContent/PassContent"; |
2 changes: 1 addition & 1 deletion
2
...src/shader-lab/shaderStruct/PassStruct.ts → ...c/shader-lab/shaderContent/PassContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
packages/design/src/shader-lab/shaderContent/ShaderContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RenderStates } from "./RenderStates"; | ||
import { Statement } from "./Statement"; | ||
import { SubShaderContent } from "./SubShaderContent"; | ||
|
||
export interface ShaderContent { | ||
name: string; | ||
subShaders: SubShaderContent[]; | ||
globalContents: Statement[]; | ||
renderStates: RenderStates; | ||
} |
2 changes: 1 addition & 1 deletion
2
.../src/shader-lab/shaderStruct/Statement.ts → ...src/shader-lab/shaderContent/Statement.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Position } from "./Position"; | ||
|
||
export interface statement { | ||
export interface Statement { | ||
content: string; | ||
range: { start: Position; end: Position }; | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/design/src/shader-lab/shaderContent/SubShaderContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PassContent } from "./PassContent"; | ||
import { RenderStates } from "./RenderStates"; | ||
import { Statement } from "./Statement"; | ||
|
||
export interface SubShaderContent { | ||
name: string; | ||
passes: PassContent[]; | ||
globalContents: Statement[]; | ||
tags?: Record<string, number | string | boolean>; | ||
renderStates: RenderStates; | ||
} |
10 changes: 0 additions & 10 deletions
10
packages/design/src/shader-lab/shaderStruct/ShaderStruct.ts
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/design/src/shader-lab/shaderStruct/SubShaderStruct.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ShaderContentParser } from "./ShaderContentParser"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters