Browse Source

Merge branch 'tounsigned' of github.com:0xrsp/Odin into tounsigned

0xrsp 3 months ago
parent
commit
cb0cab36b9
2 changed files with 80 additions and 2 deletions
  1. 78 0
      vendor/directx/d3d12/d3d12.odin
  2. 2 2
      vendor/sdl3/ttf/sdl3_ttf.odin

+ 78 - 0
vendor/directx/d3d12/d3d12.odin

@@ -837,6 +837,16 @@ FEATURE :: enum i32 {
 	OPTIONS8                              = 36,
 	OPTIONS9                              = 37,
 	WAVE_MMA                              = 38,
+	OPTIONS10                             = 39,
+	OPTIONS11                             = 40,
+	OPTIONS12                             = 41,
+	OPTIONS13                             = 42,
+	OPTIONS14                             = 43,
+	OPTIONS15                             = 44,
+	OPTIONS16                             = 45,
+	OPTIONS17                             = 46,
+	OPTIONS18                             = 47,
+	OPTIONS19                             = 48,
 }
 
 SHADER_MIN_PRECISION_SUPPORT :: enum i32 {
@@ -1195,6 +1205,74 @@ FEATURE_DATA_OPTIONS9 :: struct {
 	WaveMMATier:                                       WAVE_MMA_TIER,
 }
 
+FEATURE_DATA_OPTIONS10 :: struct {
+	VariableRateShadingSumCombinerSupported:    BOOL,
+	MeshShaderPerPrimitiveShadingRateSupported: BOOL,
+}
+
+FEATURE_DATA_OPTIONS11 :: struct {
+	AtomicInt64OnDescriptorHeapResourceSupported: BOOL,
+}
+
+TRI_STATE :: enum i32 {
+	UNKNOWN	= -1,
+	FALSE   = 0,
+	TRUE    = 1,
+}		
+
+FEATURE_DATA_OPTIONS12 :: struct {
+	MSPrimitivesPipelineStatisticIncludesCulledPrimitives: TRI_STATE,
+	EnhancedBarriersSupported:                             BOOL,
+	RelaxedFormatCastingSupported:                         BOOL,
+}
+
+FEATURE_DATA_OPTIONS13 :: struct {
+	UnrestrictedBufferTextureCopyPitchSupported: BOOL,
+	UnrestrictedVertexElementAlignmentSupported: BOOL,
+	InvertedViewportHeightFlipsYSupported:       BOOL,
+	InvertedViewportDepthFlipsZSupported:        BOOL,
+	TextureCopyBetweenDimensionsSupported:       BOOL,
+	AlphaBlendFactorSupported:                   BOOL,
+}
+
+FEATURE_DATA_OPTIONS14 :: struct {
+	AdvancedTextureOpsSupported:                    BOOL,
+	WriteableMSAATexturesSupported:                 BOOL,
+	IndependentFrontAndBackStencilRefMaskSupported: BOOL,
+}
+
+FEATURE_DATA_OPTIONS15 :: struct {
+	TriangleFanSupported:                BOOL,
+	DynamicIndexBufferStripCutSupported: BOOL,
+}
+
+FEATURE_DATA_OPTIONS16 :: struct {
+	DynamicDepthBiasSupported: BOOL,
+	GPUUploadHeapSupported:    BOOL,
+}
+
+FEATURE_DATA_OPTIONS17 :: struct {
+	NonNormalizedCoordinateSamplersSupported: BOOL,
+	ManualWriteTrackingResourceSupported:     BOOL,
+}
+
+FEATURE_DATA_OPTIONS18 :: struct {
+	RenderPassesValid: BOOL,
+}
+
+FEATURE_DATA_OPTIONS19 :: struct {
+	MismatchingOutputDimensionsSupported:           BOOL,
+	SupportedSampleCountsWithNoOutputs:             u32,
+	PointSamplingAddressesNeverRoundUp:             BOOL,
+	RasterizerDesc2Supported:                       BOOL,
+	NarrowQuadrilateralLinesSupported:              BOOL,
+	AnisoFilterWithPointMipSupported:               BOOL,
+	MaxSamplerDescriptorHeapSize:                   u32,
+	MaxSamplerDescriptorHeapSizeWithStaticSamplers: u32,
+	MaxViewDescriptorHeapSize:                      u32,
+	ComputeOnlyCustomHeapSupported:                 BOOL,
+}
+
 WAVE_MMA_INPUT_DATATYPE :: enum i32 {
 	INVALID = 0,
 	BYTE    = 1,

+ 2 - 2
vendor/sdl3/ttf/sdl3_ttf.odin

@@ -96,9 +96,9 @@ ImageType :: enum c.int {
 
 GPUAtlasDrawSequence :: struct {
 	atlas_texture: ^SDL.GPUTexture,
-	xy, uv:        ^SDL.FPoint,
+	xy, uv:        [^]SDL.FPoint,
 	num_vertices:  c.int,
-	indices:       ^c.int,
+	indices:       [^]c.int,
 	num_indices:   c.int,
 	image_type:    ImageType,
 	next:          ^GPUAtlasDrawSequence,