Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

VertexBufferLayout Bug Fix #367

Merged
merged 2 commits into from May 5, 2014
Merged

Conversation

dazerdude
Copy link
Contributor

Just a little bug fix for VertexBufferLayout Generation when not specifying AlignedByteOffsets.

Out of curiosity, is there a good reason for FormatHelper.SizeOfInBytes() to return a float after doing integer division? It seems like a bad practice, as it implies that you could get back non-integer float values from then function, when you can't actually.

@xoofx xoofx merged commit d62c841 into sharpdx:master_integration May 5, 2014
@xoofx
Copy link
Member

xoofx commented May 5, 2014

Thanks for the fix!

Agree that It was bad for FormatHelper.SizeInBytes to return a float. This is fixed by commit 035b0a3

Now it is throwing an exception in case of calculating the size of a format that can be lower than 8 bits ( all compressed formats, a 1 bit format...etc.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants