Python API for GPUShaderCreateInfo #94975

Open
opened 2022-01-17 14:28:26 +01:00 by Jeroen Bakker · 7 comments
Member

GPUShaderCreateInfo is a new API to cross compile GLSL shaders to OpenGL3/4 and Vulkan.
The API is currently only available in C/CPP.

This task is to enable the API in python. As complex structures are used we should come up with a design.
For example we could use python internal data-types (dict,list,str) Or we could wrap the API in RNA structs.
The later needs some changes to the RNA system, what is already being discussed.

GPUShaderCreateInfo is a new API to cross compile GLSL shaders to OpenGL3/4 and Vulkan. The API is currently only available in C/CPP. This task is to enable the API in python. As complex structures are used we should come up with a design. For example we could use python internal data-types (dict,list,str) Or we could wrap the API in RNA structs. The later needs some changes to the RNA system, what is already being discussed.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

This issue was referenced by 8fb2ff458b

This issue was referenced by 8fb2ff458ba579dba08bfdf57d043ad158b5db07

Added subscriber: @Spundun-Bhatt

Added subscriber: @Spundun-Bhatt

I see that a lot of work has already gone into this(see below the list). Is this task done? Or is there more work still to do here? (I'm looking for a starter project that'll help me familiarize with the Vulkan API)

I see that a lot of work has already gone into this(see below the list). Is this task done? Or is there more work still to do here? (I'm looking for a starter project that'll help me familiarize with the Vulkan API) * [All commits with the word "GPUShaderCreateInfo"](https://developer.blender.org/search/query/81jFCPCnq7U./#R) * [All Differential Revisions with the word "GPUShaderCreateInfo"](https://developer.blender.org/search/query/SmM5u.pYJVzL/#R) * A little tree I created before I realized there was way too much to track * #94975 (Python API for GPUShaderCreateInfo) * [D13360: GPUShaderCreateInfo for interface abstraction](https://archive.blender.org/developer/D13360) * #95009 (GPU: Add CreateInfo Structs for builtin shaders) * 08d008a508 * (obsolete)[D14159: Add CreateInfo for GPU_SHADER_2D_WIDGET_BASE](https://archive.blender.org/developer/D14159) * #95012 (Add CreateInfo for GPU_SHADER_2D_WIDGET_SHADOW) * fc872d738e * (obsolete)[D14624: Add CreateInfo for GPU_SHADER_2D_WIDGET_SHADOW](https://archive.blender.org/developer/D14624) * #95010 (Add CreateInfo for GPU_SHADER_2D_WIDGET_BASE(_INST)) * fc872d738e * (obsolete)[D14159: Add CreateInfo for GPU_SHADER_2D_WIDGET_BASE](https://archive.blender.org/developer/D14159) * (shader removed?) #95013 (Add CreateInfo for GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE) * #95014 (Add CreateInfo for GPU_SHADER_(2/3)D_LINE_DASHED_UNIFORM_COLOR) * aaab3c8ad4 * (obsolete)[D14332: 2d_3d_create_info](https://archive.blender.org/developer/D14332) * #95016 (Add CreateInfo for GPU_SHADER_3D_POLYLINE_(FLAT/SMOOTH/UNIFORM/CLIPPED_UNIFORM)_COLOR / GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR) * (probably fixed by) aaab3c8ad4 * [D14497: pyGPU: Port the new 'StageInterfaceInfo' and 'ShaderCreateInfo' types](https://archive.blender.org/developer/D14497) *{83fa6728e5ca}

Added subscriber: @Emi_Martinez

Added subscriber: @Emi_Martinez
Author
Member

@Spundun-Bhatt, yes wasn't aware that the python api was already added. Note that the python example files and documentation might need some examples using the new GPUShaderCreateInfo.

@Spundun-Bhatt, yes wasn't aware that the python api was already added. Note that the python example files and documentation might need some examples using the new GPUShaderCreateInfo.
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:12:56 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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, Assets & 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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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 project
No Assignees
4 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#94975
No description provided.