Code Monkey home page Code Monkey logo

Comments (6)

amerkoleci avatar amerkoleci commented on August 15, 2024 1

I've FIXED the Map method with commit: 08bfced, now you can create texture with R32_Uint and map it as byte.

Tell me if you have any issues.

from vortice.windows.

amerkoleci avatar amerkoleci commented on August 15, 2024

Hi,
Do you have any repro case? The texture is 1D texture and you call Map right?

from vortice.windows.

Kharzette avatar Kharzette commented on August 15, 2024

Yes I was using Map<uint>, but really I probably should have been using Map<byte>. R8_UInt format is byte sized I think.

With Map<byte> my span size is still 1000x1024 but the call actually works and I can see the data copied in my shader.

from vortice.windows.

Kharzette avatar Kharzette commented on August 15, 2024

If you want to see where I'm using it, this is a bit of code that acts like an old character mode screen on a C64: https://github.com/Kharzette/GrogLibs/blob/e0a68a9c92fb7830ac511ff52dcce0c85b0f7baf/MaterialLib/Screen.cs

SetScreenContents has some of the other things I tried commented out. It hooks up with the TextMode.hlsl shader in groglibs shaderlib.

Groglibs is a mess right now as I'm still converting over from sharpDX so it might be hard to build that stuff.

from vortice.windows.

Kharzette avatar Kharzette commented on August 15, 2024

The span returned is now 1024, which is exactly what I'd expect. Thanks!

from vortice.windows.

amerkoleci avatar amerkoleci commented on August 15, 2024

Nice, I'll push new stable nuget version soon

from vortice.windows.

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.