From b900f83a0120994604699a7be514268fa166b6ee Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 2 Jun 2022 01:53:07 +0900 Subject: [PATCH] internal/graphicsdriver/directx: refactoring: remove an unused member Image.numRows --- internal/graphicsdriver/directx/graphics_windows.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index 8310f5a65..1109fd9bc 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -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