change refs to ins
parent
ba183e8c0f
commit
718aaad80e
|
@ -635,7 +635,7 @@ namespace RefreshCS
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateDevice(
|
public static extern IntPtr Refresh_CreateDevice(
|
||||||
ref PresentationParameters presentationParameters,
|
in PresentationParameters presentationParameters,
|
||||||
byte debugMode
|
byte debugMode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -648,9 +648,9 @@ namespace RefreshCS
|
||||||
public static extern void Refresh_Clear(
|
public static extern void Refresh_Clear(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref Rect clearRect,
|
in Rect clearRect,
|
||||||
Refresh.ClearOptionsFlags clearOptions,
|
Refresh.ClearOptionsFlags clearOptions,
|
||||||
ref Color[] colors,
|
in Color[] colors,
|
||||||
uint colorCount,
|
uint colorCount,
|
||||||
float depth,
|
float depth,
|
||||||
int stencil
|
int stencil
|
||||||
|
@ -704,50 +704,50 @@ namespace RefreshCS
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateRenderPass(
|
public static extern IntPtr Refresh_CreateRenderPass(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref RenderPassCreateInfo renderPassCreateInfo
|
in RenderPassCreateInfo renderPassCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateComputePipeline(
|
public static extern IntPtr Refresh_CreateComputePipeline(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref ComputePipelineCreateInfo computePipelineCreateInfo
|
in ComputePipelineCreateInfo computePipelineCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateGraphicsPipeline(
|
public static extern IntPtr Refresh_CreateGraphicsPipeline(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref GraphicsPipelineCreateInfo graphicsPipelineCreateInfo
|
in GraphicsPipelineCreateInfo graphicsPipelineCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateSampler(
|
public static extern IntPtr Refresh_CreateSampler(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref SamplerStateCreateInfo samplerStateCreateInfo
|
in SamplerStateCreateInfo samplerStateCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateFramebuffer(
|
public static extern IntPtr Refresh_CreateFramebuffer(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref FramebufferCreateInfo framebufferCreateInfo
|
in FramebufferCreateInfo framebufferCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateShaderModule(
|
public static extern IntPtr Refresh_CreateShaderModule(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref ShaderModuleCreateInfo shaderModuleCreateInfo
|
in ShaderModuleCreateInfo shaderModuleCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateTexture(
|
public static extern IntPtr Refresh_CreateTexture(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref TextureCreateInfo textureCreateInfo
|
in TextureCreateInfo textureCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateColorTarget(
|
public static extern IntPtr Refresh_CreateColorTarget(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
SampleCount multisampleCount,
|
SampleCount multisampleCount,
|
||||||
ref TextureSlice textureSlice
|
in TextureSlice textureSlice
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -770,7 +770,7 @@ namespace RefreshCS
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_SetTextureData(
|
public static extern void Refresh_SetTextureData(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
ref TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
IntPtr data,
|
IntPtr data,
|
||||||
uint dataLengthInBytes
|
uint dataLengthInBytes
|
||||||
);
|
);
|
||||||
|
@ -793,8 +793,8 @@ namespace RefreshCS
|
||||||
public static extern void Refresh_CopyTextureToTexture(
|
public static extern void Refresh_CopyTextureToTexture(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref TextureSlice sourceTextureSlice,
|
in TextureSlice sourceTextureSlice,
|
||||||
ref TextureSlice destinationTextureSlice,
|
in TextureSlice destinationTextureSlice,
|
||||||
Filter filter
|
Filter filter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -802,7 +802,7 @@ namespace RefreshCS
|
||||||
public static extern void Refresh_CopyTextureToBuffer(
|
public static extern void Refresh_CopyTextureToBuffer(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
IntPtr buffer
|
IntPtr buffer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -917,10 +917,10 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr renderPass,
|
IntPtr renderPass,
|
||||||
IntPtr framebuffer,
|
IntPtr framebuffer,
|
||||||
ref Rect renderArea,
|
in Rect renderArea,
|
||||||
IntPtr pColorClearValues,
|
IntPtr pColorClearValues,
|
||||||
uint colorClearCount,
|
uint colorClearCount,
|
||||||
ref DepthStencilValue depthStencilClearValue
|
in DepthStencilValue depthStencilClearValue
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -929,7 +929,7 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr renderPass,
|
IntPtr renderPass,
|
||||||
IntPtr framebuffer,
|
IntPtr framebuffer,
|
||||||
ref Rect renderArea,
|
in Rect renderArea,
|
||||||
IntPtr pColorClearValues,
|
IntPtr pColorClearValues,
|
||||||
uint colorClearCount,
|
uint colorClearCount,
|
||||||
IntPtr depthStencilClearValue /* NULL */
|
IntPtr depthStencilClearValue /* NULL */
|
||||||
|
@ -1016,8 +1016,8 @@ namespace RefreshCS
|
||||||
public static extern void Refresh_QueuePresent(
|
public static extern void Refresh_QueuePresent(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
ref Rect destinationRectangle,
|
in Rect destinationRectangle,
|
||||||
Filter filter
|
Filter filter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1025,7 +1025,7 @@ namespace RefreshCS
|
||||||
public static extern void Refresh_QueuePresent(
|
public static extern void Refresh_QueuePresent(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
IntPtr destinationRectangle, /* null Rect */
|
IntPtr destinationRectangle, /* null Rect */
|
||||||
Filter filter
|
Filter filter
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue