It works now?????
This commit is contained in:
@@ -22,7 +22,6 @@ set(CMAKE_TOOLCHAIN_FILE ${EXTERNAL_ROOT}/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||
|
||||
set(CRCPP_ROOT ${EXTERNAL_ROOT}/CRCpp)
|
||||
set(METAL_ROOT ${EXTERNAL_ROOT}/metal-cpp)
|
||||
set(SLANG_ROOT ${EXTERNAL_ROOT}/slang)
|
||||
|
||||
set(Boost_NO_WARN_NEW_VERSIONS 1)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ include (ExternalProject)
|
||||
add_library(slang SHARED IMPORTED)
|
||||
if(WIN32)
|
||||
add_library(slang-glslang SHARED IMPORTED)
|
||||
set(SLANG_ROOT ${EXTERNAL_ROOT}/slang/build/Release/)
|
||||
set(SLANG_ROOT ${PROJECT_SOURCE_DIR}/../slang/build/Debug/)
|
||||
set_target_properties(slang-glslang PROPERTIES IMPORTED_LOCATION ${SLANG_ROOT}bin/slang-glslang.dll)
|
||||
set_target_properties(slang-glslang PROPERTIES IMPORTED_IMPLIB ${SLANG_ROOT}lib/slang.lib)
|
||||
set_target_properties(slang PROPERTIES IMPORTED_LOCATION ${SLANG_ROOT}bin/slang.dll)
|
||||
@@ -26,7 +26,7 @@ elseif(APPLE)
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
endif()
|
||||
target_include_directories(slang INTERFACE
|
||||
$<BUILD_INTERFACE:${EXTERNAL_ROOT}/slang/include>
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/../slang/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
|
||||
@@ -34,15 +34,16 @@ void meshMain(
|
||||
{
|
||||
uint p = min(i, m.primitiveCount - 1);
|
||||
{
|
||||
uint local_idx0 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 0];
|
||||
uint local_idx1 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 1];
|
||||
uint local_idx2 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 2];
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
PrimitiveAttributes primAttr;
|
||||
uint baseIndex = m.primitiveOffset + (p * 3);
|
||||
uint local_idx0 = pScene.primitiveIndices[baseIndex + 0];
|
||||
uint local_idx1 = pScene.primitiveIndices[baseIndex + 1];
|
||||
uint local_idx2 = pScene.primitiveIndices[baseIndex + 2];
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
PrimitiveAttributes primAttr;
|
||||
#ifdef VISIBILITY
|
||||
primAttr.prim = encodePrimitive(meshletId);
|
||||
primAttr.prim = encodePrimitive(meshletId);
|
||||
#endif
|
||||
prim[p] = primAttr;
|
||||
prim[p] = primAttr;
|
||||
}
|
||||
}
|
||||
for(uint i = threadID; i < MAX_VERTICES; i += MESH_GROUP_SIZE)
|
||||
|
||||
@@ -35,16 +35,17 @@ void meshMain(
|
||||
{
|
||||
uint p = min(i, m.primitiveCount - 1);
|
||||
{
|
||||
uint local_idx0 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 0];
|
||||
uint local_idx1 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 1];
|
||||
uint local_idx2 = pScene.primitiveIndices[m.primitiveOffset + (p * 3) + 2];
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
PrimitiveAttributes primAttr;
|
||||
primAttr.cull = false;//cull.triangleCulled(p);
|
||||
uint baseIndex = m.primitiveOffset + (p * 3);
|
||||
uint local_idx0 = pScene.primitiveIndices[baseIndex + 0];
|
||||
uint local_idx1 = pScene.primitiveIndices[baseIndex + 1];
|
||||
uint local_idx2 = pScene.primitiveIndices[baseIndex + 2];
|
||||
indices[p] = uint3(local_idx0, local_idx1, local_idx2);
|
||||
PrimitiveAttributes primAttr;
|
||||
primAttr.cull = false;//cull.triangleCulled(p);
|
||||
#ifdef VISIBILITY
|
||||
primAttr.prim = encodePrimitive(meshletId);
|
||||
primAttr.prim = encodePrimitive(meshletId);
|
||||
#endif
|
||||
prim[p] = primAttr;
|
||||
prim[p] = primAttr;
|
||||
}
|
||||
}
|
||||
for(uint i = threadID; i < MAX_VERTICES; i += MESH_GROUP_SIZE)
|
||||
|
||||
@@ -86,7 +86,7 @@ void Seele::beginCompilation(const ShaderCompilationInfo& info, SlangCompileTarg
|
||||
for (const auto& [name, mod] : info.entryPoints) {
|
||||
entryPoints.add(name);
|
||||
slang::IEntryPoint* entry;
|
||||
moduleMap[mod]->findEntryPointByName(name.c_str(), &entry);
|
||||
CHECK_RESULT(moduleMap[mod]->findEntryPointByName(name.c_str(), &entry));
|
||||
components.add(entry);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user