Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

DirectX 10 - GenerateShader
Old 08-30-2010, 02:03 AM   #1
Donator

raiders's Avatar

Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
DirectX 10 - GenerateShader

Code:
HRESULT GenerateShader(ID3D10Device* pD3DDevice, ID3D10PixelShader** pShader, float r, float g, float b)
{
    char szCast[] = "struct VS_OUT"
    "{"
    "    float4 Position   : SV_Position;"
    "    float4 Color    : COLOR0;"
    "};"

    "float4 main( VS_OUT input ) : SV_Target"
    "{"
    "    float4 fake;"
    "    fake.a = 1.0;"
    "    fake.r = %f;"
    "    fake.g = %f;"
    "    fake.b = %f;"
    "    return fake;"
    "}";
    ID3D10Blob*    pBlob;
    char szPixelShader[1000];

    sprintf(szPixelShader, szCast, r, g, b);

    HRESULT hr = D3DX10CompileFromMemory(szPixelShader, sizeof(szPixelShader), "shader", NULL, NULL, "main", "ps_4_0", NULL, NULL, NULL, &pBlob, NULL, NULL);
    
    if(FAILED(hr))
        return hr;

    hr = pD3DDevice->CreatePixelShader((DWORD*)pBlob->GetBufferPointer(), pBlob->GetBufferSize(), pShader);

    if(FAILED(hr))
        return hr;

    return S_OK;
}
Get you some chams?

Credits:
MSDN
Myself

Have fun,
Raiders
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Last edited by raiders; 08-30-2010 at 02:21 AM.
raiders is offline

Reply With Quote


Old 09-04-2010, 10:23 AM   #2
Level 3

Tibike's Avatar

Join Date: May 2005
Posts: 44
Reputation: -64
Rep Power: 0
Tibike is becoming an outcast
Points: 4,998, Level: 7
Points: 4,998, Level: 7 Points: 4,998, Level: 7 Points: 4,998, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
thanks raiders u good coder

maybe someone prepare a simple chams framerate to display farcry 2 (diretx10)

I really like to play farcry 2 with

i make simple chams cause very big lag. (server shutdown)

Last edited by Tibike; 09-04-2010 at 12:06 PM.
Tibike is offline

Reply With Quote

Old 09-04-2010, 11:06 AM   #3
UnKnoWnCheaTeR

Freeheadshot's Avatar

Join Date: Mar 2010
Location: Germany
Posts: 941
Reputation: 40621
Rep Power: 448
Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 25,225, Level: 22
Points: 25,225, Level: 22 Points: 25,225, Level: 22 Points: 25,225, Level: 22
Activity: 14.1%
Activity: 14.1% Activity: 14.1% Activity: 14.1%
Last Achievements
Very nice ! +rep
Freeheadshot is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
directx, generateshader
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 11:29 AM.