Skip to content

Cad markers optimization#282

Open
Przemog1 wants to merge 9 commits into
masterfrom
cad_markers_optimization
Open

Cad markers optimization#282
Przemog1 wants to merge 9 commits into
masterfrom
cad_markers_optimization

Conversation

@Przemog1
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread 62_CAD/shaders/globals.hlsl Outdated
Comment on lines 583 to 585
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR uint32_t MainObjectIdxBits = 24u; // It will be packed next to alpha in a texture
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR uint32_t AlphaBits = 32u - MainObjectIdxBits;
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR uint32_t MaxIndexableMainObjects = (1u << MainObjectIdxBits) - 1u;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the Alpha+MainObject packing a bitfield struct too? and use it in the fragment shader interlock stuff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants