Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resource processing #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

minhaaan
Copy link

warning: 'glur': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/minan/Desktop/temp/Glur/Sources/Glur/blur.metal
Building for debugging...
/Users/minan/Desktop/temp/Glur/Sources/Glur/GlurModifier.swift:19:41: error: type 'Bundle' has no member 'module'
17 |     @Environment(\.displayScale) var displayScale
18 |
19 |     let library = ShaderLibrary.bundle(.module)
   |                                         `- error: type 'Bundle' has no member 'module'
20 |
21 |     var blurX: Shader {

/Users/minan/Desktop/temp/Glur/Sources/Glur/GlurModifier.swift:22:37: error: cannot infer contextual base in reference to member 'float'
20 |
21 |     var blurX: Shader {
22 |         var shader = library.blurX(.float(radius),
   |                                     `- error: cannot infer contextual base in reference to member 'float'
23 |                                    .float(offset),
24 |                                    .float(interpolation),

/Users/minan/Desktop/temp/Glur/Sources/Glur/GlurModifier.swift:23:37: error: cannot infer contextual base in reference to member 'float'
21 |     var blurX: Shader {
22 |         var shader = library.blurX(.float(radius),
23 |                                    .float(offset),
   |                                     `- error: cannot infer contextual base in reference to member 'float'
24 |                                    .float(interpolation),
25 |                                    .float(Float(direction.rawValue)),

swift build command fails, so I added the resources process code. and created a Resources folder and put blur.metal in it

@minhaaan minhaaan changed the title resources separate for fixing swift build command Add resource processing Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant