mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
Compare commits
No commits in common. "ea462f4cb6742e7f9a124fbfe18d8bf1f2a357d9" and "f34c1c081fd40c129dc37a465e87369653a12c9b" have entirely different histories.
ea462f4cb6
...
f34c1c081f
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2024 The Ebitengine Authors
|
// Copyright 2024 The Ebiten 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,6 +32,10 @@ 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 not the first one, then
|
// If the number of targets is more than one, or if the only target is 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 not the first one, then
|
// If the number of targets is more than one, or if the only target is 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 not the first one, then
|
// If the number of targets is more than one, or if the only target is 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