aboutsummaryrefslogtreecommitdiff
path: root/src/amberscript/parser_test.cc
AgeCommit message (Collapse)Author
2020-01-29tokenizer: Rename 'String' to 'Identifier'Ben Clayton
These represent unquoted symbols - typically referred to as identifiers. This has been renamed as quoted strings will be added to the tokenizer in another change.
2019-04-10Simplify Format::GetBytesize; rename to SizeInBytes (#457)dan sinclair
The SizeInBytes name matches what is used in the DatumType class.
2019-03-28[amberscript] split parser test file (#432)dan sinclair
The parser test file is getting large and hard to work with. It's difficult to find what has been tested and where the tests are, along with causing merge conflicts. This CL splits the monolithic parser_test file into files based on what's being parsed.
2019-03-28[amberscript] Add CLEAR_COLOR parsing. (#416)dan sinclair
This Cl adds CLEAR_COLOR parsing into the AmberScript parser. The EXPECT EQ was also fixed to use the correct 0-255 range instead of 0.0-1.0 range for colour expectations. Fixes #344.
2019-03-26Implement AmberScript COPY command (#371)Hugues Evrard
This change introduce the COPY command to amberscript, which enables to copy a buffer content into an other buffer.
2019-03-25Add EXPECT EQ (#411)dan sinclair
This CL adds the EXPECT EQ command into amber script.
2019-03-22Convert buffer data earlier (#394)dan sinclair
This CL removes the data_ pointer in the amber::Buffer object. The data is transferred into the values_ list as early as possible.
2019-03-20[vulkan] Fixup width of draw commands. (#383)dan sinclair
The draw command expects the width and heigth passed into the Draw Rect command to be the full width/height we want to draw. Not a scale of -1 to 1. This means that we would only draw one corner of the screen instead of the entire screen.
2019-03-18 Remove pipeline from probe commands. (#377)dan sinclair
This CL updates the probe commands to contain the buffers needed instead of providing the pipeline.
2019-03-14[AmberScript] Implement EXPECT EQ_RGB(A)? parsing (#367)dan sinclair
This CL adds the EXPECT parsing for EQ_RGB and EQ_RGBA expectations. This is enough to allow a clear.amber script to be written. Issue #345.
2019-03-12Store BufferType in buffer. (#355)dan sinclair
Previously the buffer type existed in both the Buffer and Pipeline::BufferInfo. These buffer types could diverge, which could cause issues with thinking the buffer is of an incorrect type. This CL removes the buffer type from BufferInfo and always uses the buffer to retrieve the type.
2019-03-07Parse CLEAR command (#339)dan sinclair
This CL adds parsing for the CLEAR command in AmberScript.
2019-03-07[amberscript] Implement RUN for compute and DRAW_RECT. (#335)dan sinclair
This CL adds parsing of the RUN commands for compute and DRAW_RECT instances to AmberScript.
2019-02-11[amberscript] Parse generic buffer bindings. (#281)dan sinclair
This CL adds parsing for the generic buffer bindings.
2019-02-07Parse VERTEX_DATA and INDEX_DATA. (#271)dan sinclair
[amberscript] Parse VERTEX_DATA and INDEX_DATA. This CL adds parsing of VERTEX_DATA and INDEX_DATA binding commands inside the PIPELINEs of amberscript.
2019-02-06[amberscript] Parse PIPELINE BIND calls for color and depth buffers (#256)dan sinclair
This CL adds parsing for the AmberScript color and depth attachments. It also updates the pipelines to create a default color or depth attachment if one is not provided.
2019-01-30 [amberscript] Parse FRAMEBUFFER_SIZE (#252)dan sinclair
This CL adds a framebuffer width and height to the pipeline class and adds parsing of the FRAMEBUFFER_SIZE command.
2019-01-29Fixup ENTRY_POINT processing for AmberScript (#250)dan sinclair
This CL updates the AmberScript parser to handle the changes to the ENTRY_POINT parameter.
2019-01-24[amberscript] Buffer parsering updates. (#244)dan sinclair
This CL updates the AmberScript parser to handle the changes to the BUFFER syntax.
2019-01-15Convert API to C++03 from C++11 for CTS compatibility (#218)dan sinclair
The CTS requires code to not use c++11. This CL converts the various c++11-ism's in the Amber API to C++03.
2018-12-11Count line numbers in VkScript (#171)dan sinclair
* Count line numbers in VkScript This CL adds line counting to the VkScript parser to give more context in error messages. Issue #113
2018-12-11Merge scripts and executors. (#170)dan sinclair
This CL merges the vk and amber Script classes along with the vk and amber Executor classes.
2018-12-11Convert Vertex data into a buffer. (#164)dan sinclair
This CL allows for Buffers to be described by a DatumType (like the indices buffers) or by a Format type. The VertexNodes have been removed and converted to Format type buffers.
2018-12-05 Break apart Amber::Execute method. (#143)dan sinclair
Break apart Amber::Execute method. This CL splits Amber::Execute into a parse and execute step. The Parse step accepts a Recipe to fill out, that Recipe is then passed into the Execute step. The recipe, in the future, will allow retrieving information about the given script.
2018-11-22Add cpplint (#90)dan sinclair
Add cpplint
2018-11-14AmberScript: Parse BUFFER commands. (#6)dan sinclair
This CL adds parsing for the various buffer commands available in AmberScript. BUFFER vertex my_buf DATA_TYPE vec2<int32> SIZE 5 FILL 0 BUFFER index my_buf DATA_TYPE int32 SIZE 5 SERIES_FROM 2 INC_BY 1 BUFFER framebuffer my_frame DIMS 256 256 BUFFER storage my_store DATA_TYPE uint32 DATA 1 2 3 4 5 END For each type, the internal buffer will be filled with the data before it leaves the parser. Fixes #5
2018-11-09Initial commit of Amber for open sourcedan sinclair
Amber is a multi-API shader test framework. Amber lets you capture and communicate shader bugs with the fluidity and ease of a scripting flow: * No graphics API programming is required. * WIP: Supports Vulkan and [Dawn][Dawn] graphics APIs. * A single text string (or file) maps to a single graphics API pipeline test case. The text includes: * Input data, including buffers and images. * Shaders. * Expectations for the result of running the pipeline. * Shaders can be expressed in binary form (as hex), in SPIR-V assembly, or in a higher level shader language. * After executing the pipeline, result buffers and images can be saved to output files. This is not an officially supported Google product.