Skip to content

Mesh loaders kevin #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 11, 2025
Merged

Mesh loaders kevin #199

merged 11 commits into from
Aug 11, 2025

Conversation

kevyuu
Copy link

@kevyuu kevyuu commented Jun 25, 2025

Fix example 9, 67, 71

@devshgraphicsprogramming devshgraphicsprogramming changed the base branch from master to mesh_loaders June 25, 2025 14:09
Base automatically changed from mesh_loaders to master July 1, 2025 08:54
@devshgraphicsprogramming
Copy link
Member

btw remove EXCLUDE_FROM_ALL in CMakeLists.txt for examples you've fixed (67 and 71) so that CI tests them now

Comment on lines 74 to +83
n0 = normalize(nbl::hlsl::spirv::unpackSnorm4x8(v0).xyz);
n1 = normalize(nbl::hlsl::spirv::unpackSnorm4x8(v1).xyz);
n2 = normalize(nbl::hlsl::spirv::unpackSnorm4x8(v2).xyz);
}
break;
case OT_SPHERE:
case OT_CYLINDER:
case OT_ARROW:
case OT_CONE:
case NT_R32G32B32_SFLOAT:
{
uint32_t v0 = vk::RawBufferLoad<uint32_t>(vertexBufferAddress + indices[0] * vertexStride);
uint32_t v1 = vk::RawBufferLoad<uint32_t>(vertexBufferAddress + indices[1] * vertexStride);
uint32_t v2 = vk::RawBufferLoad<uint32_t>(vertexBufferAddress + indices[2] * vertexStride);

n0 = normalize(unpackNormals3x10(v0));
n1 = normalize(unpackNormals3x10(v1));
n2 = normalize(unpackNormals3x10(v2));
n0 = normalize(vk::RawBufferLoad<float3>(normalBufferAddress + indices[0] * 12));
n1 = normalize(vk::RawBufferLoad<float3>(normalBufferAddress + indices[1] * 12));
n2 = normalize(vk::RawBufferLoad<float3>(normalBufferAddress + indices[2] * 12));

Choose a reason for hiding this comment

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

normalization could have been hosted outside the switch to happen later, but oh well

@devshgraphicsprogramming devshgraphicsprogramming merged commit f1f0c5b into master Aug 11, 2025
1 check failed
@devshgraphicsprogramming devshgraphicsprogramming deleted the mesh_loaders_kevin branch August 11, 2025 22:03
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