mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
Compare commits
2 Commits
f34c1c081f
...
ea462f4cb6
Author | SHA1 | Date | |
---|---|---|---|
|
ea462f4cb6 | ||
|
5e40bce5c9 |
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2024 The Ebiten Authors
|
// Copyright 2024 The Ebitengine Authors
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@ -32,10 +32,6 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
dsts = [8]*ebiten.Image{
|
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{
|
ebiten.NewImageWithOptions(image.Rect(0, 0, dstSize, dstSize), &ebiten.NewImageOptions{
|
||||||
Unmanaged: true,
|
Unmanaged: true,
|
||||||
}),
|
}),
|
||||||
|
@ -619,7 +619,7 @@ func (g *graphics11) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphics
|
|||||||
srcs[i] = img
|
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.
|
// 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
|
// 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.
|
// being filled, even though it's not a MRT scenario.
|
||||||
|
@ -1254,7 +1254,7 @@ func (g *graphics12) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphics
|
|||||||
g.drawCommandList.ResourceBarrier(resourceBarriers)
|
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.
|
// 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
|
// 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.
|
// being filled, even though it's not a MRT scenario.
|
||||||
|
@ -226,7 +226,7 @@ func (g *Graphics) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphicsdr
|
|||||||
}
|
}
|
||||||
|
|
||||||
f := uint32(dsts[firstTarget].framebuffer.native)
|
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.
|
// 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
|
// Also, it only matters in order to specify empty targets/viewports when not all slots are
|
||||||
// being filled.
|
// being filled.
|
||||||
|
Loading…
Reference in New Issue
Block a user