Пример #1
0
 internal ShaderTextureResourceView(ShaderResourceViewHandle resourceViewHandle, ITexture resource,
                                    uint firstMipIndex, uint numMips)
     : base(resourceViewHandle, resource)
 {
     FirstMipIndex = firstMipIndex;
     NumMips       = numMips;
 }
Пример #2
0
 internal ShaderBufferResourceView(ShaderResourceViewHandle resourceViewHandle, IBuffer resource,
                                   uint firstElementIndex, uint numElements)
     : base(resourceViewHandle, resource)
 {
     FirstElementIndex = firstElementIndex;
     NumElements       = numElements;
 }
Пример #3
0
 internal ShaderTextureArrayResourceView(ShaderResourceViewHandle resourceViewHandle, ITextureArray resource,
                                         uint firstMipIndex, uint numMips, uint firstArrayElementIndex, uint numArrayElements)
     : base(resourceViewHandle, resource)
 {
     FirstMipIndex          = firstMipIndex;
     NumMips                = numMips;
     FirstArrayElementIndex = firstArrayElementIndex;
     NumArrayElements       = numArrayElements;
 }
Пример #4
0
 public static extern InteropBool ResourceFactory_GenerateMips(
     IntPtr failReason,
     DeviceContextHandle contextHandle,
     ShaderResourceViewHandle srvToTexture
     );
Пример #5
0
 internal ShaderResourceView(ShaderResourceViewHandle resourceViewHandle, IResource resource) : base(resourceViewHandle, resource)
 {
 }