Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8486947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:05:43+00:00 2026-06-10T21:05:43+00:00

I am trying to load a precompiled shader in SlimDX(Direct3D11), but I don’t know

  • 0

I am trying to load a precompiled shader in SlimDX(Direct3D11), but I don’t know how to do it.

I searched this topic and only found the solution for C++ native version of DirectX. It seems like /Gch compile option and device->CreatePixelShader(data,ps).

The problem is, I cannot find this function in SlimDX. The functions in SlimDX compile the shader in run time.

How can I load the precompiled shader in SlimDX?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:05:44+00:00Added an answer on June 10, 2026 at 9:05 pm

    Considering your shader binary is held in a byte[] bytecode (since i’m not sure where you load it from, but it’s just binary data once saved)

    DataStream ds = new DataStream(bytecode.Length, true, true);
    ds.Write(bytecode, 0, bytecode.Length);
    ShaderBytecode bc = new ShaderBytecode(ds);
    

    Then to load in dx11 Effect:

    Effect effect = new Effect(device,bc);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to load and save setting with this code but when I closing
I trying to load feeds from my blog but this is resulting in the
Trying to load a local file into a webbrowser control but this does not
Trying to load a small .txt file into mysql but get all my data
i am trying load file after it created from /stext command line but its
Trying to load a page fragment, or at least jump to a div but
i am trying to load r1,r2,r3 column to a checkboxlist, but the output is
I'm trying to load File.ServerRelativeUrl when loading items from list, but no luck. Trying
i am trying to load md2 files in opengl but i noticed that most
I'm trying load a 3rd party DLL but I get an error when attempting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.