-
-
Notifications
You must be signed in to change notification settings - Fork 337
Shader logic and example shaders, needs work. No MERGE #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
… and compiled headers
…haders-vortex-wave Add Vortex and Wave Shader Pairs for Virtual Display Driver (HDR)
dang wrong path
feat(shader): add vortex_shader and wave_shader under Common/Include/Shaders
from another agent
there might be stuff here from that is better
…ation This change introduces pre-activation scaffolds for iGPU/shader integration to enable blind review before activation. It adds iGPU detection hooks and related state, shader support placeholders, and a ShaderRendererEnabled flag. All new iGPU/shader code is prefixed with // #--- to allow mass-activation later.
feat(igpu-shaders): prepare blind-review diffs for shader/iGPU integration
Delete testcode folder from repository root
…k current-only code
…rent-only Align current files with orgfolder baseline and remark current-only code
… old shader directory Move CRT_shader.h to the shared include location to align with other shader headers. - Relocate CRT_shader.h to /Common/Include/Shaders/CRT_shader.h - Delete all contents of the old Virtual Display Driver (HDR)/Common/Shaders and remove the now-empty directories - Remove the obsolete Virtual Display Driver (HDR)/Common directory - Update internal build references to use the new header path BREAKING CHANGE: Removed the old include path under /Virtual Display Driver (HDR)/Common and its Shaders directory; update includes to /Common/Include/Shaders/CRT_shader.h where appropriate.
…-include-shaders-cleanup-virtual-display-driver-common-shader Move CRT_shader.h to Common/Include/Shaders and remove legacy shader directory
This cleanup removes deprecated directories to simplify the repository structure. - Remove the orgfolder directory and all its contents - Remove the scripts directory and all its contents - No code changes or user-facing behavior; no migrations required
Remove deprecated orgfolder and scripts directories
|
Don't merge this PR yet!! |
…ex for cross-GPU shader rendering Add DXGI shared texture support and keyed mutex synchronization to enable shader-based rendering across dGPU and iGPU. Shader bytecode can be loaded at runtime via a controller pipe and toggled on/off via pipe commands. Routing of shader execution is controlled by igpu-shader XML setting, allowing iGPU to render on the shared texture when enabled. ### Summary Introduce DXGI shared texture resources and mutex-based synchronization to perform GPU shader rendering on a shared target without RAM copies. Shader bytecode can be uploaded through a pipe channel and executed in a GPU-resident path. ### Details - Add shared texture, keyed mutex, SRV/RTV and shader state to Direct3DDevice - Implement pipe commands: loadshader, shader_enable, shader_disable; store shader bytecode in driver memory - Read igpu-shader from vdd_settings.xml and route shader path to iGPU or dGPU - Integrate shader execution into SwapChainProcessor using keyed mutex coordination - Ensure textures are created with D3D11_RESOURCE_MISC_SHARED | D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX - No host RAM copies; all shader operations stay on GPU; minimal impact on existing DXGI flow
feat(dxgi-shared-shader): integrate DXGI shared texture and keyed mutex for cross-GPU shader rendering
This comment was marked as resolved.
This comment was marked as resolved.
|
@ReenigneArcher My "Git-Fu" needs improvements... as do most of my actual coding, that is why I went with remarking any code changes. Due to lack of time, I've left this in this manner. In the hope that someone with more skill with implementing shaders, swapchains and share memory between gpus could take a look at it. Ps. I hope to have time to get back to Swedish translation on your software, when things calm down in my personal life. |
This comment was marked as resolved.
This comment was marked as resolved.
|
Thanks again! |
Remarked "Shader logic" and example files, AI-help
Here is the code, including using iGPU for shader calcs. I also included 3 shaders, one simple vortex, one framebuffer timed pixel shader and a advanced combine shader. I have not tested it yet, have a bunch of feature still missing or that i want to implement. But due to lack of sleep I've chose to share the foundation, since I'm now don't remember if the code for drawing the shader was added or not. More eyes on it would be good.
Files that are in focus,
All other "bits in the PR" is temporary files and agent bloat.
Every added bit of logic and comments are commented this way: // #--- followed by logic or "// #--- // " if it was an remark. So in order to test the code with a compile you only remove "// #--- " from all lines that has that in the beginning. That's the three files mentioned above.