Repository navigation
fix runtime D3D12 issues found during app testing - #1
Open
igagis-bot wants to merge 9 commits into
Open
igagis-bot wants to merge 9 commits into
igagis-bot wants to merge 9 commits into
Conversation
- use D3D12_MEMORY_POOL_UNKNOWN for non-custom heaps (the D3D12 debug layer reports D3D12_MEMORY_POOL_L0 as invalid for them) - use D3D_ROOT_SIGNATURE_VERSION_1_0: the SDK 10.0.26100.0 serializer rejects version 1_1 - include the shader compiler error blob in the root signature serialization error message - skip the Reset() call on a freshly created command allocator and command list: some runtimes reject Reset() on them until the first work has completed - do not create GPU resources for empty vertex/index buffers and skip the index buffer draw path for them - format the HRESULT in check_hresult() as a hex number - use a local D3D12_MAX_LOD constant (removed from the new SDK)
the new windows sdk (10.0.26100+) renamed D3D12_PRIMITIVE_TOPOLOGY_* to D3D_PRIMITIVE_TOPOLOGY_*; the mingw-w64 headers still use the old names
#define-based detection does not work for the enum values; use the compiler's mingw define instead. also include directx.hpp in shader_common.hpp so the shim is visible where to_topology() is defined
the D3D_PRIMITIVE_TOPOLOGY_TRIANGLEFAN enumerator is missing from the mingw-w64 headers; use a plain constant (6) instead
gcc treats the temporary descriptor handle as a dangling pointer; store it in a named local instead
vcpkg's win32 build treats the conversion warnings as errors; use explicit size_t casts for the pointer arithmetic and struct fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runtime fixes discovered while running the ruisapp-directx-test app: