Implement the Brush without relying on a stamp texture

Test Plan: Test the BrushNode in the editor

Reviewers: Keavon

Reviewed By: Keavon

Pull Request: https://github.com/GraphiteEditor/Graphite/pull/1184
This commit is contained in:
Dennis Kobert 2023-04-29 01:31:14 +02:00 committed by Keavon Chambers
parent 5d9c0cb4d5
commit 1020eb6835
31 changed files with 221 additions and 178 deletions

View file

@ -169,8 +169,7 @@ pub struct UniformNode<Executor> {
#[node_macro::node_fn(UniformNode)]
fn uniform_node<T: ToUniformBuffer, E: GpuExecutor>(data: T, executor: &'any_input E) -> ShaderInput<E::BufferHandle> {
let handle = executor.create_uniform_buffer(data).unwrap();
handle
executor.create_uniform_buffer(data).unwrap()
}
pub struct StorageNode<Executor> {
@ -179,7 +178,7 @@ pub struct StorageNode<Executor> {
#[node_macro::node_fn(StorageNode)]
fn storage_node<T: ToStorageBuffer, E: GpuExecutor>(data: T, executor: &'any_input E) -> ShaderInput<E::BufferHandle> {
let handle = executor
executor
.create_storage_buffer(
data,
StorageBufferOptions {
@ -188,8 +187,7 @@ fn storage_node<T: ToStorageBuffer, E: GpuExecutor>(data: T, executor: &'any_inp
cpu_readable: false,
},
)
.unwrap();
handle
.unwrap()
}
pub struct PushNode<Value> {