Skip to content

Conversation

@temotskipa
Copy link

@temotskipa temotskipa commented Oct 25, 2025

This PR updates the mod and refactors the renderer for 1.21.10 compatibility and prepares it for future enhancements like RT. It also includes changes to the README, refactors the mod to use Mojang mappings (due to better rendering class mappings), adds AGENTS.md and other stuff.

google-labs-jules bot and others added 15 commits October 10, 2025 13:32
…cture, including a constructor, a builder class, and placeholder methods. This completes the first step of the plan.

I have created the three placeholder shader files: `raygen.rgen`, `miss.rmiss`, and `closesthit.rchit`, and placed them in the correct directory. This completes the second step of the plan.

I have modified the `SPIRVUtils.java` file to include the new ray tracing shader types in the `ShaderKind` enum. This completes the third step of the plan.

I have updated the `PipelineManager` to handle the new `RayTracingPipeline`, including adding a field for it, a method to create it, and updating the cleanup method. This completes the fourth step of the plan.

This involved adding the `doRayTracing` and `bindRayTracingPipeline` methods to `Renderer.java` and calling `doRayTracing` from the `endFrame` method. This completes the fifth step of the plan.

I have added the `enableRayTracing` option to the `Config` class and used it to conditionally execute the ray tracing code in `Renderer.java`. This completes the sixth step of the plan.
This commit resolves several compilation errors that were causing the
Gradle build to fail. The following changes were made:

- Removed a duplicated package declaration in
  `src/main/java/net/vulkanmod/vulkan/shader/RayTracingPipeline.java`.
- Corrected the import path for the `Buffer` class.
- Added missing static imports for Vulkan API symbols from VK11,
  KHRBufferDeviceAddress, and VK12.
- Updated the cleanup method call from `free()` to `scheduleFree()` to
  match the `Buffer` class API.
- Declared the missing `sbtStride` field.
Fix Gradle build errors in RayTracingPipeline.java
Saving the current state of the rendering refactor due to persistent tool service issues. This commit is not expected to build successfully but captures the changes made so far.
…ation

Fix ray tracing shader binding table setup
…-dependencies

Update Fabric dependencies for Minecraft 1.21.10
…-pipeline

Update renderer integration for new pipeline API
@temotskipa
Copy link
Author

temotskipa commented Oct 25, 2025

It is still WIP, so I published it as a draft PR for now. If anyone has any suggestions or better yet, code, feel free to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant