Skip to content

Commit 8366ecf

Browse files
committed
Add changelog
1 parent 011668b commit 8366ecf

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

Changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# picasso Changelog
2+
3+
# v2.0
4+
5+
- (**Breaking change**) Command line format changed.
6+
- Added support for assembling multiple shaders (DVLEs) into a single SHBIN.
7+
- Added new directives: `.entry`, `.nodvle`, `.setf`, `.seti`, `.setb`.
8+
- Added auto-detection of inverted forms of opcodes. (Explicitly using `dphi`, `sgei`, `slti` and `madi` is now deprecated)
9+
- Several miscellaneous bug fixes.
10+
11+
# v1.0
12+
13+
- Initial release.

Manual.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ Options:
6464
-h, --header=<file> Specifies the name of the header file to generate
6565
```
6666

67+
DVLEs are generated in the same order as the files in the command line.
68+
6769
## Linking Model
6870

6971
`picasso` takes one or more source code files, and assembles them into a single `.shbin` file. A DVLE object is generated for each source code file, unless the `.nodvle` directive is used (see below). Procedures are shared amongst all source code files, and they may be defined and called wherever. Uniform space is also shared, that is, if two source code files declare the same uniform, they are assigned the same location. Constants however are not shared, and the same space is reused for the constants of each DVLE. Outputs and aliases are necessarily not shared either.
7072

7173
The entry point of a DVLE may be set with the `.entry` directive. If this directive is not used, `main` is assumed as the entrypoint.
7274

75+
A DVLE is marked by default as a vertex shader, unless `setemit` is used (in the case of which a geometry shader is assumed).
76+
7377
Uniforms that start with the underscore (`_`) character are not exposed in the DVLE table of uniforms. This allows for creating private uniforms that can be internally used to configure the behaviour of shared procedures.
7478

7579
## Supported Directives

source/picasso_assembler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
static const char* curFile = NULL;
88
static int curLine = -1;
99

10-
bool g_isGeoShader = false;
1110
std::vector<u32> g_outputBuf;
1211

1312
StackEntry g_stack[MAX_STACK];

0 commit comments

Comments
 (0)