mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
internal/graphicsdriver/directx: refactoring: remove an unused member Image.numRows
This commit is contained in:
parent
0dc6e4e64e
commit
b900f83a01
@ -874,7 +874,7 @@ func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
layouts, numRows, _, totalBytes := g.device.GetCopyableFootprints(&desc, 0, 1, 0)
|
||||
layouts, _, _, totalBytes := g.device.GetCopyableFootprints(&desc, 0, 1, 0)
|
||||
|
||||
i := &Image{
|
||||
graphics: g,
|
||||
@ -884,7 +884,6 @@ func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) {
|
||||
texture: t,
|
||||
state: state,
|
||||
layouts: layouts,
|
||||
numRows: numRows,
|
||||
totalBytes: totalBytes,
|
||||
}
|
||||
g.addImage(i)
|
||||
@ -1248,7 +1247,6 @@ type Image struct {
|
||||
texture *_ID3D12Resource
|
||||
stencil *_ID3D12Resource
|
||||
layouts _D3D12_PLACED_SUBRESOURCE_FOOTPRINT
|
||||
numRows uint
|
||||
totalBytes uint64
|
||||
uploadingStagingBuffer *_ID3D12Resource
|
||||
readingStagingBuffer *_ID3D12Resource
|
||||
|
Loading…
Reference in New Issue
Block a user