Skip to content

Commit

Permalink
renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
codex128 committed May 7, 2024
1 parent 5bbe40f commit 86a458b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ protected void initialize(FrameGraph frameGraph) {
protected void prepare(FGRenderContext context) {
int w = context.getWidth();
int h = context.getHeight();
outColor = register(new TextureDef2D(w, h, samples, Image.Format.RGBA8), outColor);
outDepth = register(new TextureDef2D(w, h, samples, Image.Format.Depth), outDepth);
outColor = declare(new TextureDef2D(w, h, samples, Image.Format.RGBA8), outColor);
outDepth = declare(new TextureDef2D(w, h, samples, Image.Format.Depth), outDepth);
referenceOptional(inColor, inDepth);
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected void initialize(FrameGraph frameGraph) {
protected void prepare(FGRenderContext context) {
int w = context.getWidth();
int h = context.getHeight();
outColor = register(new TextureDef2D(w, h, Image.Format.RGBA8), outColor);
outColor = declare(new TextureDef2D(w, h, Image.Format.RGBA8), outColor);
reserve(outColor);
reference(depth, diffuse, specular, emissive, normal);
referenceOptional(lights);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ protected void initialize(FrameGraph frameGraph) {}
protected void prepare(FGRenderContext context) {
int w = context.getWidth();
int h = context.getHeight();
depth = register(new TextureDef2D(w, h, Image.Format.Depth), depth);
diffuse = register(new TextureDef2D(w, h, Image.Format.RGBA16F), diffuse);
specular = register(new TextureDef2D(w, h, Image.Format.RGBA16F), specular);
emissive = register(new TextureDef2D(w, h, Image.Format.RGBA16F), emissive);
normal = register(new TextureDef2D(w, h, Image.Format.RGBA32F), normal);
lights = register(new ValueDef(LightList.class, n -> new LightList(null)), lights);
depth = declare(new TextureDef2D(w, h, Image.Format.Depth), depth);
diffuse = declare(new TextureDef2D(w, h, Image.Format.RGBA16F), diffuse);
specular = declare(new TextureDef2D(w, h, Image.Format.RGBA16F), specular);
emissive = declare(new TextureDef2D(w, h, Image.Format.RGBA16F), emissive);
normal = declare(new TextureDef2D(w, h, Image.Format.RGBA32F), normal);
lights = declare(new ValueDef(LightList.class, n -> new LightList(null)), lights);
reserve(depth, diffuse, specular, emissive, normal);
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected void disposeFrameBuffer(FrameBuffer fb) {
fb.dispose();
}

protected <T> ResourceTicket<T> register(ResourceDef<T> def, ResourceTicket<T> ticket) {
protected <T> ResourceTicket<T> declare(ResourceDef<T> def, ResourceTicket<T> ticket) {
ticket = resources.declare(this, def, ticket);
addOutput(ticket);
return ticket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected void initialize(FrameGraph frameGraph) {
}
@Override
protected void prepare(FGRenderContext context) {
outColor = register(new TextureDef2D(context.getWidth(), context.getHeight(), Image.Format.RGBA8), outColor);
outColor = declare(new TextureDef2D(context.getWidth(), context.getHeight(), Image.Format.RGBA8), outColor);
reference(diffuse, specular, emissive, normal, depth);
referenceOptional(lights, tiles);
}
Expand Down

0 comments on commit 86a458b

Please sign in to comment.