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

Changing resource category for textures in d3d12 issue #1225 #1226

Merged
merged 23 commits into from
Aug 8, 2024

Conversation

hordurj
Copy link
Contributor

@hordurj hordurj commented Jul 14, 2024

Changing resource category for textures in d3d12 #1225

Removed render_attachment = true from texture description in examples.
Added power preference to adapter selection.
Report adapter description.
Report adapter type.
  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

@@ -16,5 +16,5 @@ pub fn main() !void {

var app = try mach.App.init(allocator, .app);
defer app.deinit(allocator);
try app.run(.{ .allocator = allocator });
try app.run(.{ .allocator = allocator, .power_preference = .high_performance });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be the default so this change doesn't make sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this slid in there by accident. I wanted to test with the discrete card on my computer.

The default power_preference is set to .undefined in the struct. To have an easy way to test at different settings it might be useful to include a build option, or have the examples support some standard command line arguments.

src/Core.zig Outdated Show resolved Hide resolved
examples/sprite/main.zig Outdated Show resolved Hide resolved
src/Core.zig Outdated Show resolved Hide resolved
@emidoots emidoots merged commit 42d2a57 into hexops:main Aug 8, 2024
1 of 3 checks passed
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.

2 participants