Compare commits

...

2 Commits

Author SHA1 Message Date
Zyko
ea462f4cb6 Fixed comment 2024-06-14 20:20:15 +02:00
Zyko
5e40bce5c9 Fixed authors name 2024-06-14 19:00:33 +02:00
4 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2024 The Ebiten Authors
// Copyright 2024 The Ebitengine Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -32,10 +32,6 @@ const (
var (
dsts = [8]*ebiten.Image{
/*ebiten.NewImage(dstSize, dstSize),
ebiten.NewImage(dstSize, dstSize),
ebiten.NewImage(dstSize, dstSize),
ebiten.NewImage(dstSize, dstSize),*/
ebiten.NewImageWithOptions(image.Rect(0, 0, dstSize, dstSize), &ebiten.NewImageOptions{
Unmanaged: true,
}),

View File

@ -619,7 +619,7 @@ func (g *graphics11) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphics
srcs[i] = img
}
// If the number of targets is more than one, or if the only target is the first one, then
// If the number of targets is more than one, or if the only target is not the first one, then
// it is safe to assume that MRT is used.
// Also, it only matters in order to specify empty targets/viewports when not all slots are
// being filled, even though it's not a MRT scenario.

View File

@ -1254,7 +1254,7 @@ func (g *graphics12) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphics
g.drawCommandList.ResourceBarrier(resourceBarriers)
}
// If the number of targets is more than one, or if the only target is the first one, then
// If the number of targets is more than one, or if the only target is not the first one, then
// it is safe to assume that MRT is used.
// Also, it only matters in order to specify empty targets/viewports when not all slots are
// being filled, even though it's not a MRT scenario.

View File

@ -226,7 +226,7 @@ func (g *Graphics) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphicsdr
}
f := uint32(dsts[firstTarget].framebuffer.native)
// If the number of targets is more than one, or if the only target is the first one, then
// If the number of targets is more than one, or if the only target is not the first one, then
// it is safe to assume that MRT is used.
// Also, it only matters in order to specify empty targets/viewports when not all slots are
// being filled.