question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Why use this value in constants.js

See original GitHub issue

I am sorry to bother you, why is it designed this way, may be this question is very simple, just for unique id like UUID?

export var StaticDrawUsage = 35044; // equal 0b‭100010001110_0100‬
export var DynamicDrawUsage = 35048;// equal‭ 0b100010001110_1000‬
export var StreamDrawUsage = 35040; // equal 0b‭100010001110_0000‬
export var StaticReadUsage = 35045; // equal 0b‭100010001110_0101‬
export var DynamicReadUsage = 35049;// equal 0b100010001110_1001
export var StreamReadUsage = 35041; // equal 0b‭100010001110_0001‬
export var StaticCopyUsage = 35046; // equal 0b‭100010001110_0110‬
export var DynamicCopyUsage = 35050;// equal 0b‭100010001110_1010‬
export var StreamCopyUsage = 35042; // equal 0b‭100010001110_0010‬

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
linbingquancommented, May 23, 2020

I’m not sure what you referring to. Can you please explain in more detail why you share TS code?

see: https://github.com/mrdoob/three.js/pull/19431

Read more comments on GitHub >

github_iconTop Results From Across the Web

const - JavaScript - MDN Web Docs - Mozilla
The const declaration creates block-scoped constants, much like variables declared using the let keyword. The value of a constant can't be ...
Read more >
node.js - Const in JavaScript: when to use it and is it necessary?
From what I can tell, it is used to create immutable variables. That is wrong. ... The const declaration creates a read-only reference...
Read more >
Constants in JavaScript - the const keyword - YouTube
In this video we take a look at how to use constants in JavaScript with the const keyword. What are they? How do...
Read more >
Setting variables (and doing other things) with questions
Within a fields question, there are many possible datatype values that you can use. These affect what the user sees and how the...
Read more >
Introduction to JavaScript Variables and Assignment - AlgoDaily
Be careful about the assignment of values to variables! JavaScript allows creating variables without assigning them values. However, if that same variable is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found