common-shaders | commonly used Cg shaders | Graphics library

 by   libretro C Version: Current License: No License

kandi X-RAY | common-shaders Summary

kandi X-RAY | common-shaders Summary

common-shaders is a C library typically used in User Interface, Graphics applications. common-shaders has no bugs, it has no vulnerabilities and it has medium support. You can download it from GitHub.

Collection of commonly used Cg shaders. These shaders are usable by either HLSL and/or Cg runtime compilers. The cg2glsl script will translate most of these into GLSL shaders.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              common-shaders has a medium active ecosystem.
              It has 972 star(s) with 251 fork(s). There are 77 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 35 open issues and 36 have been closed. On average issues are closed in 154 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of common-shaders is current.

            kandi-Quality Quality

              common-shaders has 0 bugs and 0 code smells.

            kandi-Security Security

              common-shaders has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              common-shaders code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              common-shaders does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              common-shaders releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of common-shaders
            Get all kandi verified functions for this library.

            common-shaders Key Features

            No Key Features are available at this moment for common-shaders.

            common-shaders Examples and Code Snippets

            No Code Snippets are available at this moment for common-shaders.

            Community Discussions

            Trending Discussions on common-shaders

            QUESTION

            Applying HLSL Pixel Shaders to Win32 Screen Capture
            Asked 2020-May-03 at 16:24

            A little background: I'm attempting to make a Windows (10) application which makes the screen look like an old CRT monitor, scanlines, blur, and all. I'm using this official Microsoft screen capture demo as a starting point: At this stage I can capture a window, and display it back in a new mouse-through window as if it were the original window.

            I am attempting to use the CRT-Royale CRT shaders which are generally considered the best CRT shaders; these are available in .cg format. I transpile them with cgc to hlsl, then compile the hlsl files to compiled shader byte code with fxc. I am able to successfully load the compiled shaders and create the pixel shader. I then set the pixel shader in the d3d context. I then attempt to copy the capture surface frame to a pixel shader resource and set the created shaders resource. All of this builds and runs, but I do not see any difference in the output image and am not sure how to proceed. Below is the relevant code. I am not a c++ developer and am making this as a personal project which I plan on open sourcing once I have a primitive working version. Any advice is appreciated, thanks.

            ...

            ANSWER

            Answered 2020-May-03 at 16:24

            Shaders define how things are drawn. However, you don't draw anything - you just copy, which is why the shader doesn't do anything.

            What you should do is to remove the CopyResource call, and instead draw a full screen quad on the back buffer (Which requires you to create a vertex buffer that you can bind, then set the back buffer as render target, and finally call Draw/DrawIndexed to actually render something, which then will invoke the shader).

            Also - since I'm not sure whether you already do this and just stripped it from the shown code - functions like CreatePixelShader don't return HRESULTs just for the fun of it - you should check what is actually returned, because DirectX silently returns most errors and expects you to handle them, instead of crashing your program.

            Source https://stackoverflow.com/questions/61515500

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install common-shaders

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/libretro/common-shaders.git

          • CLI

            gh repo clone libretro/common-shaders

          • sshUrl

            git@github.com:libretro/common-shaders.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link