summaryrefslogtreecommitdiffstats
path: root/servers/rendering/shader_language.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #93590 from Chaosus/shader_custom_func_discardYuri Rubinsky2024-10-241-7/+16
|\ | | | | Allow usage of `discard` inside custom shader functions
| * Allow usage of `discard` inside custom shader functionsYuri Rubinsky2024-10-171-7/+16
| |
* | Allow using stage functions inside custom shader functionsYuri Rubinsky2024-10-171-38/+68
|/
* Merge pull request #92441 from Chaosus/shader_custom_func_overloadsThaddeus Crews2024-10-141-126/+238
|\ | | | | | | Implement custom function overloading in shading language
| * Implement custom function overloading in shading languageYuri Rubinsky2024-10-081-126/+238
| |
* | Merge pull request #96819 from clayjohn/GLES3-instance-uniformsClay John2024-10-071-4/+0
|\ \ | |/ |/| Implement instance uniforms in Compatibility renderer
| * Implement instance uniforms in Compatibility rendererclayjohn2024-09-101-4/+0
| |
* | Fix shader crash when return a void function callChaosus2024-09-261-0/+5
| |
* | Add external texture support (GLES3)David Snopek2024-09-201-2/+24
| | | | | | | | | | Co-authored-by: Fredia Huya-Kouadio <fhuyakou@gmail.com> Co-authored-by: Mauricio Narvaez <nvz@meta.com>
* | Fix shader incorrectly expects `int` on `uint` and vice-versa in casesChaosus2024-09-111-55/+68
|/
* Add basic support to evaluate operator value in shader languageYuri Rubinsky2024-09-091-102/+505
|
* Merge pull request #94352 from Chaosus/shader_ternary_fixRémi Verschelde2024-08-281-3/+36
|\ | | | | | | Fix multiple ternary expressions to be used without parenthesis
| * Fix multiple ternary expressions to be used without parenthesisYuri Rubinsky2024-07-171-3/+36
| |
* | Merge pull request #95274 from Chaosus/shader_forbind_const_func_declRémi Verschelde2024-08-251-0/+5
|\ \ | | | | | | | | | Forbid function declaration with a const qualifier in shaders
| * | Forbid function declaration with a const qualifier in shadersChaosus2024-08-081-0/+5
| | |
* | | Merge pull request #94324 from SomeRanDev/shader_hint_enumRémi Verschelde2024-08-201-6/+106
|\ \ \ | | | | | | | | | | | | GDShader: Add `hint_enum` for `uniform int`
| * | | Add `hint_enum` for uniform int in gdshaderRobert Borghese2024-07-131-6/+106
| | |/ | |/|
* | | Merge pull request #94785 from Chaosus/shader_fix_samplers_orderRémi Verschelde2024-08-191-0/+3
|\ \ \ | | | | | | | | | | | | Fix texture samplers to not being last in the property list
| * | | Fix texture samplers to not being last in the property listYuri Rubinsky2024-07-291-0/+3
| | | |
* | | | Merge pull request #95547 from Chaosus/shader_fix_for_middle_expressionRémi Verschelde2024-08-161-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | Fix middle expression of `for` loop to accept not only operators
| * | | | Fix middle expression of `for` loop to accept not only operatorsChaosus2024-08-151-3/+3
| | |_|/ | |/| |
* | | | Merge pull request #95350 from Chaosus/shader_fix_for_loop_comma_crashRémi Verschelde2024-08-161-0/+17
|\ \ \ \ | | | | | | | | | | | | | | | Fix shader crash when the comma used in `for` loop as a trailing
| * | | | Fix shader crash when the comma used in `for` loop as a trailingChaosus2024-08-101-0/+17
| |/ / /
* | | | Merge pull request #94896 from jsjtxietian/carry-subgroupRémi Verschelde2024-08-161-0/+1
|\ \ \ \ | |/ / / |/| | | | | | | Fix uniform subgroup in shader will carry out to next group
| * | | Fix uniform subgroup in shader will carry out to next groupjsjtxietian2024-07-291-0/+1
| | | |
* | | | Restrict sampler hint validation to only screen texture hintsclayjohn2024-07-281-2/+11
| |/ / |/| |
* | | Emit normal_roughness compatibility code in custom functionsclayjohn2024-07-261-6/+7
| | |
* | | Fix editor crash when shader has incorrect global array declarationjsjtxietian2024-07-261-0/+6
|/ /
* | Fix shader crash when using a varying in separate func before it definedYuri Rubinsky2024-07-231-8/+20
| |
* | Make shaderLanguage's parser recognize sampler passed in from arrayjsjtxietian2024-07-171-4/+10
|/
* Improve code for setup of `global_func_set` in `ShaderLanguage`Yuri Rubinsky2024-07-021-9/+13
|
* Fix orphan StringName's in ShaderLanguageYuri Rubinsky2024-07-021-0/+1
|
* Prevent shader crash when doing invalid operation on boolean vectorYuri Rubinsky2024-06-301-3/+3
|
* Use `PackedVector4Array` instead of float array for vec4 array uniformYuri Rubinsky2024-06-281-6/+3
|
* Merge pull request #93469 from Chaosus/shader_fix_crashRémi Verschelde2024-06-251-3/+7
|\ | | | | | | Fix crash on shader constant initialization on MinGW compiler
| * Fix crash on shader constant initialization on MinGW compilerYuri Rubinsky2024-06-221-3/+7
| |
* | Forbid calling of derivative functions in incorrect functionsYuri Rubinsky2024-06-211-2/+106
|/
* Prevent using built-ins for func names in shadersYuri Rubinsky2024-05-301-2/+20
|
* Fix completion of functions with struct param/return type in shadersYuri Rubinsky2024-05-281-10/+18
|
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-041-14/+14
| | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* [Rendering] Add hints to some uniform `PropertyInfo`sA Thousand Ships2024-05-031-1/+17
| | | | | * Enforce range on `int/uint` * Use flags for `bvec2/3/4` arrays
* Merge pull request #90587 from clayjohn/reversez-shader-warnRémi Verschelde2024-04-161-0/+22
|\ | | | | | | Warn users when assigning `VERTEX` directly to `POSITION` due to compatibility breakage from Reverse Z changes
| * Warn users when assigning VERTEX directly to POSITION due to compatibility ↵clayjohn2024-04-121-0/+22
| | | | | | | | breakage from reverse z changes
* | Fix false positive errors in gdshaderinc filesze2j2024-03-211-3/+3
|/ | | | | | | | | | | These language features are wrongly detected as errors (not supported) when used in gdshaderinc files: - instance uniforms - hint_normal_roughness_texture - hint_depth_texture This type of error should only occur when the shader type is not spatial and not a gdshaderinc file.
* Add const lvalue ref to container parametersMuller-Castro2024-01-051-2/+2
|
* Fix assign with swizzle in shader not doing varying validation checkjsjtxietian2023-10-231-0/+4
|
* Merge pull request #83004 from Chaosus/shader_language_fix_typoRémi Verschelde2023-10-091-1/+1
|\ | | | | | | Fix typo in `shader_language.cpp`
| * Fix typo in `shader_language.cpp`Yuri Rubinsky2023-10-081-1/+1
| |
* | Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-10-081-1/+1
|/
* Merge pull request #81619 from Chaosus/fix_shader_constRémi Verschelde2023-10-031-50/+53
|\ | | | | | | Re-allows constants in global space to be initialized with function call