rj-action-library/Runtime/Rendering/Objects/RDPipeline.cs

16 lines
358 B
C#
Raw Normal View History

2025-04-23 12:00:43 +00:00
using Godot;
namespace Rokojori
{
public class RDPipeline: RenderingObject
{
2025-04-26 20:04:11 +00:00
public RDPipeline( RDContext context, Rid rid ):base( context, rid )
2025-04-23 12:00:43 +00:00
{}
2025-04-26 20:04:11 +00:00
public static RDPipeline Create( RDContext context, RDShader shader )
2025-04-23 12:00:43 +00:00
{
2025-04-26 20:04:11 +00:00
return new RDPipeline( context, context.renderingDevice.ComputePipelineCreate( shader.rid ) );
2025-04-23 12:00:43 +00:00
}
}
}