Posts

VK9 - Status Report - AUG

This will be a quick post to let everyone know how shader support is progressing. The instructions present in my sample shader are all being translated in the current code base. The next steps will be to finish implementing the SPIR-V header and make sure the register type detection is working properly with the sample shader. Once all of that is complete I can begin unit testing this new functionality. My intention is to write an equivalent GLSL shader by hand and compile it to ensure the correctness of the converted SPIR-V.

VK9 - Status Report

Image
Since my last post I've continued to work through the features necessary to reach more milestones. One of the biggest missing features is shader support. All of the fixed function support implemented so far is handled with shaders. However, D3D9 allows programmers to specify custom vertex and pixel shaders as well. As with the rest of D3D9 the shader format is proprietary. It will take me some time to build out the pieces to parse and convert the shaders to SPIR-V (the bytecode format that Vulkan uses). I will be nose down on this so until I get it implemented status updates may be less frequent and will likely be in a status update format rather than milestone announcements. Once basic support is implemented I can start hitting milestones again. The reason for this temporary shift is that shader support has irreducible complexity. Unlike the other milestones I have to implement several features before I can verify progress with a sample. I have however gotten a few more samples t…

VK9 - Milestone17 Completed

Image
VK9 has reached it's 17th milestone. Reaching this milestone required implementation of depth bias support. In addition the shaders have been re-structured using includes which were introduced in the previous release by switching to glslc. This release also contains full screen support. Special thanks to my patrons over on Patreon you guys are great.

VK9 - Now on Patreon

Several people have asked about Patreon or some other way to support the project. As of today I am now on Patreon. I've created a couple perks for Patreon supporters. There are two levels "Supporters" and "Premium Supporters" both receive a role on the community Discord for their level and the premium supporters gain access to a private channel. The source and release builds will still remain available to everyone but Premium Supporters will gain access to early builds and demos. https://www.patreon.com/disks86

VK9 - Community Benchmark

A member of the community who goes by "Syntist" ran some benchmarks comparing the latest VK9 build to native Direct 3D 9. The results show very competitive average and minimum frame rates. Development effort has been primarily focused on feature parity so it's encouraging to see results this close on real hardware. Dx9 and Vk9 Comparison

VK9 - Milestone16 Completed

Image
VK9 has reached it's 14th,15th, and 16th milestones. Reaching these milestones required further work on alpha blending and lighting support for fixed function. In addition this release switched to the glslc shader compiler from Google. The primary reason for the switch is the addition of #include support in shaders. This will allow some shader code for fixed function to be deduplicated.

VK9 - Milestone13 Completed

Image
VK9 has reached it's 12th and 13th milestones. Reaching these milestones required the addition of limited lighting support and significant improvements to the texture stage support. The variables used for texture stages are now handled with specialization constants. What this means is that although they exist in the SPIR-V they should be optimized away when the SPIR-V is compiled into GPU instructions. This approach means that the GPU should only be running relevant code for fixed function. As part of initial lighting support both the light structures and material structure are available to the shaders being used to handle fixed function.