mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 11:39:19 +02: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
|
target_include_directories(${LIBMANUL_NAME} PRIVATE
|
||||||
"${DEPS_DIR}/glad/include")
|
"${DEPS_DIR}/glad/include")
|
||||||
|
|
||||||
|
# Python.h
|
||||||
|
target_include_directories(${LIBMANUL_NAME} PRIVATE
|
||||||
|
"${PYTHON_INCLUDE_DIR}")
|
||||||
|
|
||||||
target_compile_definitions(${LIBMANUL_NAME} PRIVATE
|
target_compile_definitions(${LIBMANUL_NAME} PRIVATE
|
||||||
GLM_ENABLE_EXPERIMENTAL
|
GLM_ENABLE_EXPERIMENTAL
|
||||||
GLM_FORCE_SWIZZLE)
|
GLM_FORCE_SWIZZLE)
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ void NvTexture::update_from_memory(size_t width, size_t height,
|
|||||||
nvrhi::CommandListHandle command_list =
|
nvrhi::CommandListHandle command_list =
|
||||||
backend->GetDevice()->createCommandList(
|
backend->GetDevice()->createCommandList(
|
||||||
nvrhi::CommandListParameters()
|
nvrhi::CommandListParameters()
|
||||||
.setQueueType(nvrhi::CommandQueue::Copy)
|
.setQueueType(nvrhi::CommandQueue::Graphics)
|
||||||
.setEnableImmediateExecution(false));
|
.setEnableImmediateExecution(false));
|
||||||
command_list->open();
|
command_list->open();
|
||||||
for (int mip = 0; mip < m_data.size(); ++mip) {
|
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();
|
command_list->close();
|
||||||
backend->GetDevice()->executeCommandList(command_list,
|
backend->GetDevice()->executeCommandList(command_list,
|
||||||
nvrhi::CommandQueue::Copy);
|
nvrhi::CommandQueue::Graphics);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NvTexture::IsLoaded() const { return false; }
|
bool NvTexture::IsLoaded() const { return false; }
|
||||||
|
|||||||
Reference in New Issue
Block a user