internal/graphicsdriver/directx: refactoring

This commit is contained in:
Hajime Hoshi 2023-03-25 16:52:58 +09:00
parent c394bdcf7c
commit d6525a2782

View File

@ -328,7 +328,7 @@ func (g *Graphics) initializeXbox(useWARP bool, useDebugLayer bool) (ferr error)
return err return err
} }
if err := g.registerFrameEventForXbox(); err != nil { if err := g.graphics12.registerFrameEventForXbox(); err != nil {
return err return err
} }
@ -351,7 +351,7 @@ func (g *Graphics) initializeXbox(useWARP bool, useDebugLayer bool) (ferr error)
return nil return nil
} }
func (g *Graphics) registerFrameEventForXbox() error { func (g *graphics12) registerFrameEventForXbox() error {
d, err := g.device.QueryInterface(&_IID_IDXGIDevice) d, err := g.device.QueryInterface(&_IID_IDXGIDevice)
if err != nil { if err != nil {
return err return err