Giter VIP home page Giter VIP logo

Comments (4)

bugsweeper avatar bugsweeper commented on June 3, 2024 1

@cxreiff Done

from bevy.

cxreiff avatar cxreiff commented on June 3, 2024

The AppConfig struct is where I started, I just decreased the width by one, e.g. on line 68-72:

let config = AppConfig {
        width: 1919,
        height: 1080,
        single_image: true,
};

...which results in the 45° skewed image (second screenshot). I also tried adding 4, 8, 16, and 32 to the width to see if that worked, and it didn't- but just now I tried adding 64 (1952x1080) and it worked! So it seems that the width has to be multiples of 64. It wouldn't be a problem for most fixed resolutions but for my use case a user might resize it to anything.

from bevy.

bugsweeper avatar bugsweeper commented on June 3, 2024

If found the root of problem. That is in copying from image to buffer, because copy_texture_to_buffer can copy image only by rows aligned wgpu::COPY_BYTES_PER_ROW_ALIGNMENT. That is why image in buffer can be little bit wider. I will fix copying from buffer to resulting image.

from bevy.

cxreiff avatar cxreiff commented on June 3, 2024

Oh great! I tried digging but wgpu calls are a bit beyond me at the moment. Thanks for your help!

from bevy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.