Jump to content
  • Advertisement

Inderpreet Singh

Member
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

170 Neutral

About Inderpreet Singh

  • Rank
    Member
  1. What's the relation between Teraflops and Threads in a GPU like GTX Titan X has 7 TFOPS of Compute Performance but how many threads it has ? If they are different concepts. Can you please explain both of them?
  2. Inderpreet Singh

    Questions about compute shader

    I'm really confused! :(
  3. Inderpreet Singh

    Questions about compute shader

    Texture2D<float> InputTex : register( t0 ); RWTexture2D<float> OutputTex : register( u0 ); // Group size #define size_x 20 #define size_y 20 // Declare one thread fo r each texel of the input texture. [numthreads(size_x, size_y, 1)] void CSMAIN( uint3 DispatchThreadID : SV_DispatchThreadID ) { int3 texturelocation = int3( 0,0, 0 ); texturelocation.x = DispatchThreadID.x; texturelocation.y = DispatchThreadID.y; float Value = InputTex.Load( texturelocation ); OutputTex[DispatchThreadID.xy] = 2.0f * Value; } And in this code DispatchThreadID.x and DispatchThreadID.y have same value like thread 17 of x and thread 17 of y? And Can I write like this OutputTex[ texturelocation ] = 2.0f * Value;
  4. Inderpreet Singh

    Questions about compute shader

    Thanks!
  5. Inderpreet Singh

    Questions about compute shader

    Thanks for the reply. One last question - What will be the value of "Value" variable let's say for thread 17(only group is dispatched) ?
  6. Inderpreet Singh

    Questions about compute shader

    It says that this program is doubling the contents of buffer resource. How it is doubling?   What is the value of DispatchThread.x?     What I meant was the function void CSMAIN is executed by single thread(Which is a thread number generated by SV_DispatchThread)?
  7. I have couple of questions for the following compute shader program Buffer<float> InputBuf : register( t0 ); RWBuffer<fIoat> OutputBuf : register( u0 ); // Group size #define size_x 20 #define size_y 1 // Declare one thread fo r each texel of the input texture. [numthreads(size_x, size_y, 1)] void CSMAIN( uint3 DispatchThreadID : SV_DispatchThreadID ) { float Value = InputBuf.Load( DispatchThreadID.x ); OutputBuf[DispatchThreadID.x] = 2.0f * Value; } 1. Is this program executed by single thread? 2. What DispatchThread.x is doing?
  8. As there is a three.js - http://threejs.org/ library for WebGL which makes working with WebGL simpler. Is there library for HLSL which makes working with (DirectX)HLSL simpler and efficient and powerful?
  9. Inderpreet Singh

    Couple of questions regarding graphics API?

    @MJP Thanks! Finally I got what I wanted. 
  10. Inderpreet Singh

    Couple of questions regarding graphics API?

    The reason that I asked this question is I want to implement a complete new ray tracing rendering engine instead of making a hybrid (DX with ray tracing) rendering engine. So that's why I wanted to know that if I can access the GPU directly(on PC and consoles) instead of going through an API ?
  11. I want to create a new API like DirectX. I have a few questions regarding this?   If I create a new API that works on PC and consoles, will my API will be allowed to run on PC and consoles(or they will force me to use like PSSL for PS4 and DirectX for Xbox etc)?   If there are no such issues, how can I create a Graphics API( link to starting point from which I can move on) ?   
  12. Inderpreet Singh

    Can we use openCL on consoles?

    Thanks for the help guys! I love this site!!
  13. Inderpreet Singh

    Can we use openCL on consoles?

    @Hodgman HLSL works on PS4 too?
  14. Inderpreet Singh

    Can we use openCL on consoles?

    @MJP is there any way that we can use GPGPU on consoles?
  15. Can we use openCL on consoles like Xbox One and PS4 for General purpose GPU?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!