mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibSoftGPU: Define a simple shader instruction set
This adds a simple instruction set with basic operations and adds an instruction list to the shader class.
This commit is contained in:
parent
bb28492af0
commit
1e548a84d6
4 changed files with 74 additions and 3 deletions
|
@ -1638,7 +1638,7 @@ NonnullRefPtr<GPU::Image> Device::create_image(GPU::PixelFormat const& pixel_for
|
|||
|
||||
ErrorOr<NonnullRefPtr<GPU::Shader>> Device::create_shader(GPU::IR::Shader const&)
|
||||
{
|
||||
return adopt_ref(*new Shader(this));
|
||||
return adopt_ref(*new Shader(this, {}));
|
||||
}
|
||||
|
||||
void Device::set_sampler_config(unsigned sampler, GPU::SamplerConfig const& config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue