mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
patch issues with python
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user