maraneshi / hlsl-constantbufferlayoutvisualizer Goto Github PK
View Code? Open in Web Editor NEWHLSL Constant Buffer Layout Visualizer
Home Page: https://maraneshi.github.io/HLSL-ConstantBufferLayoutVisualizer/
License: Other
HLSL Constant Buffer Layout Visualizer
Home Page: https://maraneshi.github.io/HLSL-ConstantBufferLayoutVisualizer/
License: Other
First, I have to say, stellar work on this! ๐คฏ
I noticed this footnote, and would like to correct any error on the Wiki page this refers to, but I couldn't identify the error:
HLSL-ConstantBufferLayoutVisualizer/index.html
Lines 808 to 809 in 3675f18
and then says "legacy" constant buffer rules apply on top of that, which is not true for this specific rule as demonstrated in the example for Rule #4.
This seems to imply a lack of basis for forcing alignment to 16 for structures in the document for Rule 4.
Under "Legacy" Constant Buffer Basics
it says:
- Aggregates (arrays and structures) are always 16-byte row-aligned. ...
This point appears to be the basis for Rule 4, and it supersedes the basic type alignment rule when a struct appears in a cbuffer.
I think the basic point about alignment for the structure is that the structure itself does not force alignment of 16. The alignment to 16 is required when the struct is included inside a constant buffer.
Perhaps your interpretation of what's written is different than mine. If so, can you more clearly identify the error you're referring to?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.