patch issues with python

This commit is contained in:
WLs50
2025-03-19 16:46:47 +01:00
parent deee34e370
commit 0882652b2a
2 changed files with 6 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ target_include_directories(${LIBMANUL_NAME} PRIVATE
target_include_directories(${LIBMANUL_NAME} PRIVATE
"${DEPS_DIR}/glad/include")
# Python.h
target_include_directories(${LIBMANUL_NAME} PRIVATE
"${PYTHON_INCLUDE_DIR}")
target_compile_definitions(${LIBMANUL_NAME} PRIVATE
GLM_ENABLE_EXPERIMENTAL
GLM_FORCE_SWIZZLE)

View File

@@ -244,7 +244,7 @@ void NvTexture::update_from_memory(size_t width, size_t height,
nvrhi::CommandListHandle command_list =
backend->GetDevice()->createCommandList(
nvrhi::CommandListParameters()
.setQueueType(nvrhi::CommandQueue::Copy)
.setQueueType(nvrhi::CommandQueue::Graphics)
.setEnableImmediateExecution(false));
command_list->open();
for (int mip = 0; mip < m_data.size(); ++mip) {
@@ -253,7 +253,7 @@ void NvTexture::update_from_memory(size_t width, size_t height,
}
command_list->close();
backend->GetDevice()->executeCommandList(command_list,
nvrhi::CommandQueue::Copy);
nvrhi::CommandQueue::Graphics);
}
bool NvTexture::IsLoaded() const { return false; }