GPU: Shader Builder CMake Fixes #115889

Merged
Jeroen Bakker merged 5 commits from Jeroen-Bakker/blender:gpu/shader-builder-cmake into main 2024-01-11 13:42:26 +01:00
Member

This PR cleans up shader builder CMake files and fixes vulkan includes
that could not be found on all platforms.

  • Reduce code duplication
  • Use private var for MANIFEST on windows
  • Add system includes when compiling
This PR cleans up shader builder CMake files and fixes vulkan includes that could not be found on all platforms. * Reduce code duplication * Use private var for MANIFEST on windows * Add system includes when compiling
Jeroen Bakker added this to the 4.1 milestone 2023-12-07 12:24:31 +01:00
Jeroen Bakker added the
Module
Viewport & EEVEE
label 2023-12-07 12:24:31 +01:00
Jeroen Bakker self-assigned this 2023-12-07 12:24:32 +01:00
Jeroen Bakker added 1 commit 2023-12-07 12:24:42 +01:00
This PR cleansup shader builder building and fixes vulkan includes
that could not be found on all platforms.

* reduce code duplication
* use private var for MANIFEST on windows
* add system includes when compiling
Jeroen Bakker added 2 commits 2023-12-08 15:59:22 +01:00
Jeroen Bakker requested review from Clément Foucault 2023-12-08 16:03:45 +01:00
Jeroen Bakker requested review from Ray molenkamp 2023-12-08 16:03:52 +01:00
Jeroen Bakker added this to the Module: Viewport & EEVEE project 2023-12-08 16:03:57 +01:00

Is this still required? The builder seems to work fine now.

Is this still required? The builder seems to work fine now.

Closed by accident

Closed by accident
Clément Foucault reopened this pull request 2024-01-03 22:24:17 +01:00
Ray molenkamp approved these changes 2024-01-03 22:33:18 +01:00
Ray molenkamp left a comment
Member

LGTM, accepted pending on the bots building this successfully.

Further cleanup can be done as the PUBLIC linking is a little odd, it's an executable, there can logically be no inheritance on this target. PRIVATE would be the correct one to use. which is used for the target_include_directories but not for the target_link_libraries (if this lands as is, fine with me, i'll clean it up in one of my future cmake cleanups)

LGTM, accepted pending on the bots building this successfully. Further cleanup can be done as the `PUBLIC` linking is a little odd, it's an executable, there can logically be no inheritance on this target. `PRIVATE` would be the correct one to use. which is used for the `target_include_directories` but not for the `target_link_libraries` (if this lands as is, fine with me, i'll clean it up in one of my future cmake cleanups)
Author
Member

This patch is still needed. It removes a TODO, and includes some changes Ray proposed to me in another patch and fixes vulkan includes on some systems. I still need to include the changes that Ray proposes in his comment above. Will be done next week.

This patch is still needed. It removes a TODO, and includes some changes Ray proposed to me in another patch and fixes vulkan includes on some systems. I still need to include the changes that Ray proposes in his comment above. Will be done next week.
Jeroen Bakker added 2 commits 2024-01-11 13:06:53 +01:00
Resolved code-review feedback
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
a8ee20642a
Author
Member

@blender-bot build

@blender-bot build
Jeroen Bakker merged commit 69ac64df54 into main 2024-01-11 13:42:26 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115889
No description provided.