Skip to content

Commit d64e5c7

Browse files
committed
fix bitcount
1 parent c1909c3 commit d64e5c7

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

src/nodes/math/BitcountNode.js

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
21
import { float, Fn, If, nodeProxyIntent, uint, int, uvec2, uvec3, uvec4, ivec2, ivec3, ivec4 } from '../tsl/TSLCore.js';
3-
=======
4-
import { addMethodChaining, float, Fn, If, nodeProxyIntent, uint, int, uvec2, uvec3, uvec4, ivec2, ivec3, ivec4 } from '../tsl/TSLCore.js';
5-
>>>>>>> 277001d084 (sketch out solve)
62
import { bitcast, floatBitsToUint } from './BitcastNode.js';
73
import MathNode, { negate } from './MathNode.js';
84

@@ -45,10 +41,7 @@ class BitcountNode extends MathNode {
4541
/**
4642
* Casts the input value of the function to an integer if necessary.
4743
*
48-
<<<<<<< HEAD
4944
* @private
50-
=======
51-
>>>>>>> 277001d084 (sketch out solve)
5245
* @param {Node<uint>|Node<int>} inputNode - The input value.
5346
* @param {Node<uint>} outputNode - The output value.
5447
* @param {string} elementType - The type of the input value.
@@ -67,25 +60,6 @@ class BitcountNode extends MathNode {
6760

6861
}
6962

70-
<<<<<<< HEAD
71-
=======
72-
_returnBaseDataNode( elementType ) {
73-
74-
if ( elementType === 'uint' ) {
75-
76-
return uint;
77-
78-
}
79-
80-
if ( elementType === 'int' ) {
81-
82-
return int;
83-
84-
}
85-
86-
}
87-
88-
>>>>>>> 277001d084 (sketch out solve)
8963
_returnDataNode( inputType ) {
9064

9165
switch ( inputType ) {
@@ -138,7 +112,6 @@ class BitcountNode extends MathNode {
138112

139113
}
140114

141-
<<<<<<< HEAD
142115
}
143116

144117
}
@@ -151,15 +124,6 @@ class BitcountNode extends MathNode {
151124
* @param {string} elementType - The type of the input value.
152125
* @returns {Function} - The generated function
153126
*/
154-
=======
155-
156-
}
157-
158-
159-
160-
}
161-
162-
>>>>>>> 277001d084 (sketch out solve)
163127
_createTrailingZerosBaseLayout( method, elementType ) {
164128

165129
const outputConvertNode = this._returnDataNode( elementType );
@@ -189,7 +153,6 @@ class BitcountNode extends MathNode {
189153

190154
}
191155

192-
<<<<<<< HEAD
193156
/**
194157
* Creates and registers a reusable GLSL function that emulates the behavior of countLeadingZeros.
195158
*
@@ -198,8 +161,6 @@ class BitcountNode extends MathNode {
198161
* @param {string} elementType - The type of the input value.
199162
* @returns {Function} - The generated function
200163
*/
201-
=======
202-
>>>>>>> 277001d084 (sketch out solve)
203164
_createLeadingZerosBaseLayout( method, elementType ) {
204165

205166
const outputConvertNode = this._returnDataNode( elementType );
@@ -264,7 +225,6 @@ class BitcountNode extends MathNode {
264225

265226
}
266227

267-
<<<<<<< HEAD
268228
/**
269229
* Creates and registers a reusable GLSL function that emulates the behavior of countOneBits.
270230
*
@@ -273,18 +233,12 @@ class BitcountNode extends MathNode {
273233
* @param {string} elementType - The type of the input value.
274234
* @returns {Function} - The generated function
275235
*/
276-
=======
277-
>>>>>>> 277001d084 (sketch out solve)
278236
_createOneBitsBaseLayout( method, elementType ) {
279237

280238
const outputConvertNode = this._returnDataNode( elementType );
281239

282240
const fnDef = Fn( ( [ value ] ) => {
283241

284-
<<<<<<< HEAD
285-
=======
286-
287-
>>>>>>> 277001d084 (sketch out solve)
288242
const v = uint( 0.0 );
289243

290244
this._resolveElementType( value, v, elementType );

0 commit comments

Comments
 (0)