John Kessenich
e5c394bcba
Standalone: Fix #1814 : Check that linkage was specified for reflection.
2019-07-02 09:47:42 -06:00
John Kessenich
605afc7b1b
SPV: Add a switch for favoring non-NaN operands in min, max, and clamp.
2019-06-17 23:33:09 -06:00
John Kessenich
08e01e79c5
Bump version and revision.
2019-05-10 00:34:10 -06:00
Christoph Kubisch
55ba3eaf89
introduce new --dump-builtin-symbols command line
...
add corresponding EShMsgBuiltinSymbolTable
TSymbol::dump functions have option to do "complete" print
bugfix in TType::getCompleteString, structure can be null for block
2019-04-13 22:18:16 +02:00
baldurk
1905069857
Add option to unwrap I/O block aggregates in reflection
...
* We follow similar rules to uniform block exploding.
2019-02-11 11:53:52 +00:00
John Kessenich
d83344fc4e
Merge pull request #1684 from baldurk/reflection-interface-improve
...
Opt-in improvements to reflection interface
2019-02-09 12:59:30 +07:00
baldurk
4513df9175
Reflow for better readability
2019-02-08 10:48:48 +00:00
John Kessenich
377bccb143
Build: Fix #1665 : remove __fastcall
2019-02-07 23:28:37 -07:00
baldurk
a972e73ad7
Add option to reflect all block members, inactive or active.
...
* The stages mask is more fine-grained, and each variable or block's mask
indicates which stages it's active in.
2019-02-04 12:02:59 +00:00
baldurk
657acc0c40
Add option to reflect buffer blocks & variables separately to uniforms
...
* Also note the uniform indices of atomic counter buffers
2019-02-04 12:02:59 +00:00
baldurk
4a2aa82236
Reflect array stride, top-level array stride, and block member count
2019-02-04 12:02:59 +00:00
baldurk
0af5e3e346
Reflect pipeline outputs as well as inputs, optionally from other stages
...
* We add an option to reflect inputs from other stages than vertex, if only a
later subset of the stages is linked into the program.
2019-02-04 12:02:59 +00:00
baldurk
edf8212ab8
Add an option to report array variables with trailing [0] suffix
...
* This is as expected by ARB_program_interface_query
2019-02-04 11:21:09 +00:00
baldurk
15c37f79a9
Include array index in reflected uniform names more consistently
...
* This comes from the resolution of issues 4, 5 & 6 in
ARB_program_interface_query, stating that uniform buffers should have their
members expanded out as normal and arrays should have elements added.
* If a buffer block has a large array e.g. [10000] we don't want to iterate over
every array element. Instead we should only expand out the first [0] element,
then expand as normal from there.
* The array name should still be appended with [0] to indicate that it's an
array.
2019-02-04 11:21:09 +00:00
baldurk
6d47785825
Add options to control how reflection information is built
2019-02-04 11:21:09 +00:00
baldurk
1dc5dcf0a5
Move TObjectReflection into public interface to clean up reflection
...
* Forwarding functions are left to preserve source compatibility with code using
the old queries.
2019-02-04 11:21:07 +00:00
John Kessenich
b23d232ec5
Licensing. Fixes #958 . Add licenes file and update copyrights.
2018-12-14 10:47:35 -07:00
Rémi Verschelde
ebfd91a719
Remove Unix executable permission from text files
2018-12-10 10:49:16 +01:00
John Kessenich
bd1c1831d5
Manually merge ClemensRognerSD-dx9-sampler and resolve conflicts.
2018-12-07 18:38:26 -07:00
John Kessenich
1a5e3a9ba6
Bump minor version.
2018-11-16 10:02:18 -07:00
John Kessenich
8717a5d39a
SPV/Standalone: Support specifying arbitrary versions of SPIR-V.
2018-10-26 10:16:47 -06:00
Neil Roberts
b0f3d794c8
Add an option to set the base uniform location
...
This will be used to generate uniform locations with --aml
2018-10-02 12:15:22 +02:00
Neil Roberts
16f53474c8
Add a command-line option to override uniform locations
2018-10-02 12:15:22 +02:00
Jeff Bolz
27f5db0537
Remove NV_EXTENSION ifdefs from ShaderLang.h
2018-09-26 09:03:57 -05:00
John Kessenich
8751c13ce2
Bump minor version.
2018-09-19 16:50:05 -06:00
Chao Chen
b50c02ef53
Add-support-for-SPV_NVX_raytracing
2018-09-19 13:07:43 -07:00
Chao Chen
3c3669904c
Add-support-for-SPV_NV_mesh_shader
2018-09-19 13:07:43 -07:00
John Kessenich
546b78854a
Printing preprocessed shaders (not a supported path): Fix #1490 : strings
...
Put quote marks around strings, due to a change in how tokenization works.
2018-09-10 11:42:16 -06:00
John Kessenich
1ca0f8e8eb
Bump version and revision.
2018-09-07 09:07:03 -06:00
otakuto
d03da06ac1
Remove execute permissions
2018-08-07 03:16:20 +09:00
dmpakas
f556e5da26
Reflection exposes the Shader Stages where a Uniform is present
2018-07-10 18:25:48 +03:00
John Kessenich
312dcfb070
Implement GL_EXT_shader_16bit_storage and GL_EXT_shader_8bit_storage extensions.
...
These introduce limited support for 8/16-bit types such that they can only be accessed in buffer memory and converted to/from 32-bit types.
Contributed from Khronos-internal work.
2018-07-03 13:51:31 -06:00
John Kessenich
fd9d9ef436
Bump version.
2018-05-04 21:35:05 -06:00
John Kessenich
461ea09943
Non-functional: Fix tabs.
2018-04-11 00:03:47 -06:00
John Kessenich
4597fea82e
Update revision.
2018-04-05 13:50:02 -06:00
Matthew Albrecht
2199356979
Added getter for uniform block bindings
2018-03-30 09:58:01 -05:00
GregF
fb03a55e0f
Only print legalization warning if optimizer disabled
2018-03-29 13:17:54 -06:00
John Kessenich
7cec64fc42
Non functional: add EshTargetClientVersion alias for EShTargetClientVersion.
...
Fixes #1304 .
2018-03-22 23:54:04 -06:00
John Kessenich
5d610ee1dc
Implement SPV_GOOGLE_hlsl_functionality1.
...
Enabled via -fhlsl_functionality1
2018-03-16 20:21:44 -06:00
GregF
bfa64afb78
Increment minor version to 4
2018-03-09 17:51:11 -07:00
John Kessenich
fb97d25c98
Merge branch 'feature' of https://github.com/amdrexu/glslang into amdrexu-feature
2018-03-07 14:29:45 -07:00
Rex Xu
cb61eec948
HLSL: Map min types to GLSL 16-bit types
2018-03-07 13:10:01 +08:00
John Kessenich
66011cb2c2
SPV: Implement Vulkan 1.1 features and extensions.
2018-03-06 16:12:04 -07:00
John Kessenich
fa9b465b92
Versioning: Bump to minor version 1, for new SPIRV-Tools update.
2018-03-06 13:08:19 -07:00
John Kessenich
c6c80a6e48
Versioning: Address #1255 : Move to semantic versioning.
...
Still missing is automation and final decisions on mechanisms in general.
2018-03-05 22:23:17 -07:00
John Kessenich
22f02d09cc
EShTargetSpv: Fix #1235 , spelling, in a backward compatible way.
2018-01-31 17:53:24 -07:00
John Kessenich
82ead04c39
Non-functional. Fix #1223 : expand comments.
2018-01-17 21:45:25 -07:00
LoopDawg
b22c069f7a
HLSL: add optional position.Y inversion
...
Adds command line options:
--invert-y
--iy
(synonyms) which invert position.Y on vertex shader output. Handles these cases:
* Direct single variable return
* Member of direct returned struct
* Single variable output parameter
* Member of struct output parameter
API:
// Enables position.Y output negation in vertex shader
void TShader::setInvertY(bool invert);
Fixes #1173
2017-12-07 10:48:14 -07:00
John Kessenich
be20905582
Memory: Non-Functional: Rationalize and improve encapsulation of TLS usage.
...
This will make the next (functional) commit easier to see.
2017-11-12 15:28:58 -07:00
LoopDawg
e570955cdc
Reverse order of setShiftBindingForSet parameters
...
Per feedback on PR #1111 , this reverses the order of the parameters for the setShiftBinding API.
It is now:
void TShader::setShiftBindingForSet(TResourceType res, unsigned int base, unsigned int set);
2017-11-09 09:51:15 -07:00