diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.go b/internal/graphicsdriver/playstation5/graphics_playstation5.go index 7ac2a3d3e..a9bc03279 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.go +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.go @@ -153,7 +153,3 @@ func (s *Shader) ID() graphicsdriver.ShaderID { func (s *Shader) Dispose() { C.ebitengine_DisposeShader(C.int(s.id)) } - -func RegisterPrecompiledShaders(hash shaderir.SourceHash, vertex, pixel []byte) { - // TODO: Implement this. -} diff --git a/internal/graphicsdriver/playstation5/shader_paystation5.go b/internal/graphicsdriver/playstation5/shader_paystation5.go new file mode 100644 index 000000000..b3333fdf7 --- /dev/null +++ b/internal/graphicsdriver/playstation5/shader_paystation5.go @@ -0,0 +1,27 @@ +// Copyright 2023 The Ebitengine Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//go:build playstation5 + +// This is a separated pure Go file so that the `shaderprecomp` package can use this without Cgo. + +package playstation5 + +import ( + "github.com/hajimehoshi/ebiten/v2/internal/shaderir" +) + +func RegisterPrecompiledShaders(hash shaderir.SourceHash, vertex, pixel []byte) { + // TODO: Implement this. +}