mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
layouts, numRows, _, totalBytes := g.device.GetCopyableFootprints(&desc, 0, 1, 0)
|
layouts, _, _, totalBytes := g.device.GetCopyableFootprints(&desc, 0, 1, 0)
|
||||||
|
|
||||||
i := &Image{
|
i := &Image{
|
||||||
graphics: g,
|
graphics: g,
|
||||||
@ -884,7 +884,6 @@ func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) {
|
|||||||
texture: t,
|
texture: t,
|
||||||
state: state,
|
state: state,
|
||||||
layouts: layouts,
|
layouts: layouts,
|
||||||
numRows: numRows,
|
|
||||||
totalBytes: totalBytes,
|
totalBytes: totalBytes,
|
||||||
}
|
}
|
||||||
g.addImage(i)
|
g.addImage(i)
|
||||||
@ -1248,7 +1247,6 @@ type Image struct {
|
|||||||
texture *_ID3D12Resource
|
texture *_ID3D12Resource
|
||||||
stencil *_ID3D12Resource
|
stencil *_ID3D12Resource
|
||||||
layouts _D3D12_PLACED_SUBRESOURCE_FOOTPRINT
|
layouts _D3D12_PLACED_SUBRESOURCE_FOOTPRINT
|
||||||
numRows uint
|
|
||||||
totalBytes uint64
|
totalBytes uint64
|
||||||
uploadingStagingBuffer *_ID3D12Resource
|
uploadingStagingBuffer *_ID3D12Resource
|
||||||
readingStagingBuffer *_ID3D12Resource
|
readingStagingBuffer *_ID3D12Resource
|
||||||
|
Loading…
Reference in New Issue
Block a user