aboutsummaryrefslogtreecommitdiff
path: root/src/clspv_helper.cc
AgeCommit message (Collapse)Author
2019-07-23Add support for specifying compile options (#592)alan-baker
Fixes #433 * Adds COMPILE_OPTIONS command * currently only supported for OPENCL-C shaders * plumbed to Clspv * Added tests * Add docs
2019-07-23Opencl set for kernel args (#589)alan-baker
Fixes #428 * Adds parsing (and tests) for SET command in pipeline command: * only for use with OPENCL-C shaders (errors out in other cases) ``` SET KERNEL ARG_NAME _name_ AS {datum_type} _value_ SET KERNEL ARG_NUMBER _number_ AS {datum_type} _value_ ``` * Executor now invokes the pipeline to generate buffers for the PoD args populated from SET commands * Allow clustered pod args * refactor opencl specific code in executor to its own loop * Add end-to-end test * Document SET command
2019-07-19Bind opencl buffers (#584)alan-baker
Fixes #426 * New BIND subcommands to specify kernel args by name or ordinal * storage class specification is optional, but checked for consistency * clspv compiles parse descriptor map (partially) into Pipeline::ShaderInfo * Bindings updated before pipeline creation * added compiler and pipeline tests for new functionality * added new end-to-end test * Add documentation * Buffer storage class specification is now optional for OpenCL-C
2019-07-15Support parsing OpenCL C kernels (#578)alan-baker
* New shader format: OpenCLC * Add parser tests * Build fixes for clspv * add include director * add link libraries * add macro definition * Add clspv helper for compiling Fixes #428