From b12fea5b52e533f456c1e3c61c67bbfd9f8c3201 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Fri, 3 Dec 2021 11:35:38 +0300 Subject: Add bitwise operators to `VisualShaderNodeIntOp` --- doc/classes/VisualShaderNodeIntFunc.xml | 5 ++++- doc/classes/VisualShaderNodeIntOp.xml | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/VisualShaderNodeIntFunc.xml b/doc/classes/VisualShaderNodeIntFunc.xml index d2782efa96..316529a347 100644 --- a/doc/classes/VisualShaderNodeIntFunc.xml +++ b/doc/classes/VisualShaderNodeIntFunc.xml @@ -23,7 +23,10 @@ Extracts the sign of the parameter. Translates to [code]sign(x)[/code] in the Godot Shader Language. - + + Returns the result of bitwise [code]NOT[/code] operation on the integer. Translates to [code]~a[/code] in the Godot Shader Language. + + Represents the size of the [enum Function] enum. diff --git a/doc/classes/VisualShaderNodeIntOp.xml b/doc/classes/VisualShaderNodeIntOp.xml index e5fcafca81..c685592fd0 100644 --- a/doc/classes/VisualShaderNodeIntOp.xml +++ b/doc/classes/VisualShaderNodeIntOp.xml @@ -35,7 +35,22 @@ Returns the lesser of two numbers. Translates to [code]max(a, b)[/code] in the Godot Shader Language. - + + Returns the result of bitwise [code]AND[/code] operation on the integer. Translates to [code]a & b[/code] in the Godot Shader Language. + + + Returns the result of bitwise [code]OR[/code] operation for two integers. Translates to [code]a | b[/code] in the Godot Shader Language. + + + Returns the result of bitwise [code]XOR[/code] operation for two integers. Translates to [code]a ^ b[/code] in the Godot Shader Language. + + + Returns the result of bitwise left shift operation on the integer. Translates to [code]a << b[/code] in the Godot Shader Language. + + + Returns the result of bitwise right shift operation on the integer. Translates to [code]a >> b[/code] in the Godot Shader Language. + + Represents the size of the [enum Operator] enum. -- cgit v1.2.3